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
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
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
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
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
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
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
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
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,
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
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
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) {
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()
>
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
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
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
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
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.
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
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
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
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
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
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(){
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
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
26 matches
Mail list logo