Re: Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-08 Thread david.w.smi...@gmail.com
d SimpleCollector in the source code but > couldn't find them. Am I missing something? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lucene-Spatial-Question-How-to-efficiently-retrieve-all-results-within-a-bounding-box-tp4140616p4140673.html

Re: Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-08 Thread parth_n
e.com/Lucene-Spatial-Question-How-to-efficiently-retrieve-all-results-within-a-bounding-box-tp4140616p4140673.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user-uns

Re: Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-08 Thread david.w.smi...@gmail.com
n.com/in/davidwsmiley On Sun, Jun 8, 2014 at 1:10 AM, parth_n wrote: > Hi everyone, > > I am trying to retrieve all results within a given bounding box in a 2-D > space. I understand that the scoring function is based on the distance from > the center of the query. I am not look

Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-07 Thread parth_n
Hi everyone, I am trying to retrieve all results within a given bounding box in a 2-D space. I understand that the scoring function is based on the distance from the center of the query. I am not looking to retrieve top-k results, but all of them. I have read previous forums on this similar

Re: how to reterieve all results from lucene searcher.search() method

2013-06-19 Thread Michael McCandless
Create a custom Collector? Mike McCandless http://blog.mikemccandless.com On Wed, Jun 19, 2013 at 3:39 AM, Swapnil Patil wrote: > you can get all results for given query "q". By giving documents to fetch > a very big number like Integer.MAX_VALUE. > > But if u

Re: how to reterieve all results from lucene searcher.search() method

2013-06-19 Thread neha yadav
You can try like : long docSizeQ1= docs.getNumFound() ; will give you the total number of results. and this value can be inserted in like TopDocs hits = searcher.search(qu,docSizeQ1); Hope this helps. On Wed, Jun 19, 2013 at 1:09 PM, Swapnil Patil wrote: > you can get all results for gi

Re: how to reterieve all results from lucene searcher.search() method

2013-06-19 Thread Swapnil Patil
you can get all results for given query "q". By giving documents to fetch a very big number like Integer.MAX_VALUE. But if u want to loop over all documents. Use index reader and get document by its doc id from 0 to numDocs (Index reader has method for num docs). On Wed, Jun 19, 20

how to reterieve all results from lucene searcher.search() method

2013-06-19 Thread neeraj shah
hello, Is there any way to get all the search result. In lucene we get top documents by giving the limit like top 100,1000... etc. but if i want to get all results. How can I achieve that?? Query qu = new QueryParser(Version.LUCENE_36,"field", analyzer).parse(query); To

Re: Retrieving Top Terms for a subset of the index (or for all results of a query)

2008-10-12 Thread Grant Ingersoll
s is a bad explaination or wheter it makes any sense at all... So, I really want to avoid iterating over all results (obviously), so my question is really if there is a prefered approach for doing such analysis / has this been done in a good way before? Thanks for any help! Best regards,

Retrieving Top Terms for a subset of the index (or for all results of a query)

2008-10-11 Thread Aleksander M. Stensby
like getting the top 50 terms (like you can do with luke) but instead of doing it for the full index, I would like to do the same procedure after applying a filter or a query. Don't know if this is a bad explaination or wheter it makes any sense at all... So, I really want to avoid iteratin

Re: All results

2008-05-16 Thread Otis Gospodnetic
From: Hasan Diwan <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Friday, May 16, 2008 1:32:16 PM > Subject: Re: All results > > On 15/05/2008, Otis Gospodnetic wrote: > > What does your code look like? If you are using Hits, what does > > hits.lengt

Re: All results

2008-05-16 Thread Hasan Diwan
On 15/05/2008, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > What does your code look like? If you are using Hits, what does > hits.length() give you? Me code is below: Hits hits = searcher.search(parsedQuery); if (hits.length() == 0) {

Re: All results

2008-05-15 Thread Otis Gospodnetic
6, 2008 1:48:56 AM > Subject: Re: All results > > On 15/05/2008, Otis Gospodnetic wrote: > > You can get all matches via Hits if you want, it's just that Lucene will > > need > to do some re-querying under the hood. Why don't you use the search() >

Re: All results

2008-05-15 Thread Hasan Diwan
On 15/05/2008, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > You can get all matches via Hits if you want, it's just that Lucene will > need to do some re-querying under the hood. Why don't you use the > search() method that takes HitCollector to get all docs - I thought > that's what you

Re: All results

2008-05-15 Thread Otis Gospodnetic
tis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Hasan Diwan <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Friday, May 16, 2008 12:28:46 AM > Subject: Re: All results > > Otis, > > On 15/05/2008, Otis G

Re: All results

2008-05-15 Thread Hasan Diwan
post it in JIRA. >From the lucene source... public final Hits search(Query query) throws IOException { return search(query, (Filter)null); }[1] this will not print all results, according to [2]. I would like it to. By default, lucene will not display low-scoring results -- how you set

Re: All results

2008-05-15 Thread Otis Gospodnetic
lr - Nutch - Original Message > From: Hasan Diwan <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Thursday, May 15, 2008 11:54:48 PM > Subject: All results > > It would appear that to see all results (including low scoring) I need > to pass a diffe

All results

2008-05-15 Thread Hasan Diwan
It would appear that to see all results (including low scoring) I need to pass a different Filter to Searcher.search[1]. If filter is null, only the highest-scoring results are returned. How do I change the threshold for hits returned? -- Cheers, Hasan Diwan <[EMAIL PROTECTED]> 1.

Re: Fastest Method for Searching (need all results)

2006-08-02 Thread Ryan O'Hara
eks dev, The most best way of looping through all results that I have come across is using a HitCollector and grabbing the field values via FieldCache. This is under two conditions: 1) The FieldCache arrays are initialized only once, since creating these arrays creates serious overhead

Re: Fastest Method for Searching (need all results)

2006-07-21 Thread eks dev
8:43:41 PM Subject: Fastest Method for Searching (need all results) My index contains approximately 5 millions documents. During a search, I need to grab the value of a field for every document in the result set. I am currently using a HitCollector to search. Below is my code: searcher.search

Re: Fastest Method for Searching (need all results)

2006-07-21 Thread Ryan O'Hara
I haven't had the chance to use this new feature yet, but have you tried with selective field loading, so that you can load only that 1 field from your index and not all of them? I have not tried selective field loading, but it sounds like a good idea. What class is it in? Any more inform

Re: Fastest Method for Searching (need all results)

2006-07-21 Thread Mark Miller
Provides a new api, IndexReader.document(int doc, String[] fields). A document containing only the specified fields is created. The other fields of the document are not loaded, although unfortunately uncompressed strings still have to be scanned because the length information in the index is

Re: Fastest Method for Searching (need all results)

2006-07-21 Thread Ryan O'Hara
Perhaps I am speaking too quickly, but I would try by not grabbing the value of the field for every document in the results set. Someone will see that value or use it for a couple million hits? Could be I suppose...but if not than axe it. Grab the first few thousand (or MUCH less) and if th

Re: Fastest Method for Searching (need all results)

2006-07-21 Thread Mark Miller
Ryan O'Hara wrote: My index contains approximately 5 millions documents. During a search, I need to grab the value of a field for every document in the result set. I am currently using a HitCollector to search. Below is my code: searcher.search(query, new HitCollector(){

Re: Fastest Method for Searching (need all results)

2006-07-21 Thread Otis Gospodnetic
org Sent: Friday, July 21, 2006 2:43:41 PM Subject: Fastest Method for Searching (need all results) My index contains approximately 5 millions documents. During a search, I need to grab the value of a field for every document in the result set. I am currently using a HitCollector to search

Fastest Method for Searching (need all results)

2006-07-21 Thread Ryan O'Hara
My index contains approximately 5 millions documents. During a search, I need to grab the value of a field for every document in the result set. I am currently using a HitCollector to search. Below is my code: searcher.search(query, new HitCollector(){ public void