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

2014-06-08 Thread david.w.smi...@gmail.com
Yes; as I said in my last sentence: "You’ll see a difference of Document vs StoredDocument with 4x”. As to SimpleCollector not being in 4x (I didn’t check but I’ll take your word for it) — the bottom line is that you need to write a Collector, and a simple one at that. ~ David Smiley Freelance Ap

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

2014-06-08 Thread parth_n
Thanks a lot for the reply David! I am having some problems executing this code. I am using 4.8.1. I tried looking for StoredDocument and 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/Lucen

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

2014-06-08 Thread david.w.smi...@gmail.com
Hi. Your question is actually not particularly spatial; it’s more circumstantial to your particular query. You want to know how to do a query and collect *all* the results, in no particular order. To do this efficiently, you need to use a Collector. Also, I noticed you are using the “IsWithin” p

Re: absence of searchAfter method with Collector parameter in Lucene IndexSearcher

2014-06-08 Thread Kailash Budhathoki
Thank you Hoss. I was exactly looking for sth like TopFieldCollector.create(...). Basically my objective is to sort the document by the document number(I have read only index with only one segment & also because of some other requirements). Here's what I did, // create a sort field based on docum