csantos | 1 Jan 16:17 2009
Picon

Showing highlighted results


Hello,

After applying the Highlighter on the result of a fulltext query i need to
display these highlighted results for the users so they can further navigate
(click on a row and get more details). My problem is that i must relate the
showed results with the actual data in the database to allow this
navigation, but the highlighted results aren't associated with the database,
they are generated based on the search results. Is it reasonable to add a
field for the highlighted results in the respective table in the database? 
That doesn't seem an elegant solution. Does anyone has a better idea? By the
way my Webapplication uses Hibernate.

Thanks in advance. 
--

-- 
View this message in context: http://www.nabble.com/Showing-highlighted-results-tp21242035p21242035.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
tom | 1 Jan 16:17 2009
Picon

Re: Showing highlighted results

AUTOMATIC REPLY
LUX is closed until 5th January 2009
tom | 1 Jan 16:18 2009
Picon

Re: Re: Showing highlighted results

AUTOMATIC REPLY
LUX is closed until 5th January 2009
Amin Mohammed-Coleman | 1 Jan 22:11 2009
Picon

Fwd: Search Problem


>
> Hi
>
> I have created a RTFHandler which takes a RTF file and creates a  
> lucene Document which is indexed.  The RTFHandler looks like  
> something like this:
>
> if (bodyText != null) {
> 			Document document = new Document();
> 			Field field = new Field(MetaDataEnum.BODY.getDescription(),  
> bodyText.trim(), Field.Store.YES, Field.Index.ANALYZED);
> 			document.add(field);
> 			
> 		
> }
>
> I am using Java Built in RTF text extraction.  When I run my test to  
> verify that the document contains text that I expect this works  
> fine.  I get the following when I print the document:
>
> Document<stored/uncompressed,indexed,tokenized<body:This is a test  
> rtf document that will be indexed.
>
> Amin Mohammed-Coleman> stored/ 
> uncompressed,indexed<path:rtfDocumentToIndex.rtf> stored/ 
> uncompressed,indexed<name:rtfDocumentToIndex.rtf> stored/ 
> uncompressed,indexed<type:RTF_INDEXER> stored/ 
> uncompressed,indexed<summary:This is a >>
>
(Continue reading)

Chris Hostetter | 2 Jan 01:25 2009

Re: Extract the text that was indexed


: > Just wanted to reconstruct a new index based on an existing index(but
: > turning off norms) that's all.
: 
: If you want to create an identical index but without norms use
: FieldNormModifier in contrib/miscellaneous.

and that ladies nad gentlemen is *exactly* the definition of an "X/Y 
Problem" ...

http://people.apache.org/~hossman/#xyproblem

Please, Please, PLEASE! .. help us help you.  Ask questions about 
your goal, not about problems you are encountering with a particular 
approach you are attempting to achieve your goal (or at a very least: tell 
us the goal you are trying to achieve along with the approach you are 
having problems with)

-Hoss
Chris Lu | 2 Jan 01:55 2009
Picon

Re: Search Problem

You need to let us know the analyzer you are using.
-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes
DBSight customer, a shopping comparison site, (anonymous per request) got
2.6 Million Euro funding!

On Thu, Jan 1, 2009 at 1:11 PM, Amin Mohammed-Coleman <aminmc <at> gmail.com>wrote:

>
>
>> Hi
>>
>> I have created a RTFHandler which takes a RTF file and creates a lucene
>> Document which is indexed.  The RTFHandler looks like something like this:
>>
>> if (bodyText != null) {
>>                        Document document = new Document();
>>                        Field field = new
>> Field(MetaDataEnum.BODY.getDescription(), bodyText.trim(), Field.Store.YES,
>> Field.Index.ANALYZED);
>>                        document.add(field);
>>
>>
>> }
(Continue reading)

Amin Mohammed-Coleman | 2 Jan 08:30 2009
Picon

Re: Search Problem

Hi

Sorry I was using the StandardAnalyzer in this instance.

Cheers

On 2 Jan 2009, at 00:55, Chris Lu wrote:

> You need to let us know the analyzer you are using.
> --  
> Chris Lu
> -------------------------
> Instant Scalable Full-Text Search On Any Database/Application
> site: http://www.dbsight.net
> demo: http://search.dbsight.com
> Lucene Database Search in 3 minutes:
> http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes
> DBSight customer, a shopping comparison site, (anonymous per  
> request) got
> 2.6 Million Euro funding!
>
> On Thu, Jan 1, 2009 at 1:11 PM, Amin Mohammed-Coleman <aminmc <at> gmail.com 
> >wrote:
>
>>
>>
>>> Hi
>>>
>>> I have created a RTFHandler which takes a RTF file and creates a  
>>> lucene
(Continue reading)

tom | 2 Jan 08:30 2009
Picon

Re: Re: Search Problem

AUTOMATIC REPLY
LUX is closed until 5th January 2009
tom | 2 Jan 08:31 2009
Picon

Re: Re: Re: Search Problem

AUTOMATIC REPLY
LUX is closed until 5th January 2009
Ravichandra | 2 Jan 08:35 2009

Out of Memory Error while using WildCard Query


Hi

  I am using Lucene for record set of around 1.5 million records and the
index size is approximately 400MB. I am also using query level boosting so
that we can get the relevant records first in the search results.
  Here is the way I create query:

  Query partialMatchQuery = new WildcardQuery(new Term("column_name",
"termToSearch*"));
   partialMatchQuery.setBoost(100);

When I deployed the application on a tomcat instance with 512MB RAM. First
it threw an exception about too many clauses, so I set the Max clause count
to Integer max. Then it threw an out of memory error.

The options I tried:

•	I thought of using Filters, but I have to search on normal string data not
Dates. And I am not able to use the boosting with filters.

•	If I upgrade the RAM to 1GB, I didn’t get any out of memory error. But I
feel if the data gets increased, this error may come up again. 

Questions:

1.	To my understanding, filters will be applied on the search results. Is it
true?
2.	Is there any way we can use boost with filters?
3.	What should be the RAM size when compared with index size?
(Continue reading)


Gmane