Re: Grouping Lucene result

2016-02-25 Thread Koji Sekiguchi
Hi Taher, Solr has the function of result grouping. I think it has two steps. First, it tries to find how many groups are there in the result and choose top groups (say 10 groups) using a priority queue. Second, provide 10 priority queues for each groups and search again to collect second or a

Grouping Lucene result

2016-02-23 Thread Taher Galal
Hi, I was wondering how to extend the grouping lucene functionality as I am not sure how the values of the field are grouped therefore making me group them faster any tutorial or direction would be great Thanks, Taher Galal

Re: Lucene Result

2011-06-08 Thread Erick Erickson
glad you found it. I'd still recommend you get a copy of Luke, though, it's invaluable. Best Erick On Wed, Jun 8, 2011 at 8:49 AM, Pranav goyal wrote: > Hi Erick, > > Thanks for the answer, before using Luke I got where I am making a mistake, > and I replied it here. > > But thanks for the r

Re: Lucene Result

2011-06-08 Thread Pranav goyal
Hi Erick, Thanks for the answer, before using Luke I got where I am making a mistake, and I replied it here. But thanks for the reply. On Wed, Jun 8, 2011 at 6:14 PM, Erick Erickson wrote: > hard to say. You should get a copy of Luke and inspect your index to > see if what you > think you put t

Re: Lucene Result

2011-06-08 Thread Erick Erickson
hard to say. You should get a copy of Luke and inspect your index to see if what you think you put there is actually there. When you added data to your index, did you perform a commit? Best Erick On Wed, Jun 8, 2011 at 2:45 AM, Pranav goyal wrote: > There is one field DocId which I am storing as

Re: Lucene Result

2011-06-07 Thread Pranav goyal
There is one field DocId which I am storing as well as indexing and DocId and it's value is 0341 But the search results are giving me 0 results. Is there any error in my code for searching? StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_31); IndexSearcher searc

Re: Lucene Result

2011-06-07 Thread Pranav goyal
Thanks Anshum On Wed, Jun 8, 2011 at 11:40 AM, Anshum wrote: > Hi Pranav, > The result would be a list of document ids, which can be used to retrieve > the document (Using an indexreader). Once you have the document, you could > fetch 'ANY' of the 'STORED' fields from the index for your purpose.

Re: Lucene Result

2011-06-07 Thread Anshum
Hi Pranav, The result would be a list of document ids, which can be used to retrieve the document (Using an indexreader). Once you have the document, you could fetch 'ANY' of the 'STORED' fields from the index for your purpose. Directly, you'd not receive either the key field or any other field fro

Lucene Result

2011-06-07 Thread Pranav goyal
Hi all, I am getting confused in this thing, Let say I make a lucene index using a document having a key field (which I am storing as well as indexing) and rest of my fields I am just indexing. When I make some query what would be my result? Will it be the field which I am storing or it can be a

Re: limit lucene result

2005-09-07 Thread Yonik Seeley
The Hits object retrieves the documents lazily, so just ask it for the first 100. -Yonik On 9/7/05, haipeng du <[EMAIL PROTECTED]> wrote: > > The reason that I want to limit returned result is that I do not want > to get out of memory problem. I index lucene with 3 million documents. > Sometime

limit lucene result

2005-09-07 Thread haipeng du
The reason that I want to limit returned result is that I do not want to get out of memory problem. I index lucene with 3 million documents. Sometimes, searching will return millions of fields back to me. I just want to get the first 100, for example , to show them to user. Even, I use search(query