Re: Non-index files under the search directory

2016-11-24 Thread András Péteri
Correct, this data is associated with individual IndexCommits (you should be able to see the key-value pairs in the segment_xy files' raw contents in an index directory). To consolidate the entries, you'll have to retrieve user data from each sub-index, put all of them into a new map, then set this

Re: Understanding Query Parser Behavior

2016-11-24 Thread Michael McCandless
Hi, You should double check which analyzer you are using during indexing. The same analyzer on the same string should produce the same tokens. Mike McCandless http://blog.mikemccandless.com On Wed, Nov 23, 2016 at 9:38 PM, Peru Redmi wrote: > Could someone elaborate this. > > On Tue, Nov 22,

Range query on date field

2016-11-24 Thread Markus Jelsma
Hi - i seem to be having trouble correctly executing a range query on a date field. The following Solr document is indexed via a unit test followed by a commit:       view     test_key     2013-01-09T17:11:40Z   I can retrieve the document simply wrapping term queries in a boolean query like

Re: Understanding Query Parser Behavior

2016-11-24 Thread Peru Redmi
Hello Mike, Here is, how i analyze my text using QueryParser ( with ClassicAnalyzer) and plain ClassicAnalyzer. On checking the same in luke, i get "//" as RegexQuery. Here is my code snippet: String value = "http\\://www.google.com"; > Analyzer anal = new ClassicAnalyzer(Version

term frequency

2016-11-24 Thread huda barakat
I'm using SOLRJ to find term frequency for each term in a field, I wrote this code but it is not working: 1. String urlString = "http://localhost:8983/solr/huda";; 2. SolrClient solr = new HttpSolrClient.Builder(urlString).build(); 3. 4. SolrQuery query = new S

Re: term frequency

2016-11-24 Thread Jason Wee
the exception line does not match the code you pasted, but do make sure your object actually not null before accessing its method. On Thu, Nov 24, 2016 at 5:42 PM, huda barakat wrote: > I'm using SOLRJ to find term frequency for each term in a field, I wrote > this code but it is not working: > >

Re: how do lucene read large index files?

2016-11-24 Thread Kumaran Ramasubramanian
Erick, Thanks a lot for sharing an excellent post... Btw, am using NIOFSDirectory, could you please elaborate on below mentioned lines? or any further pointers? NIOFSDirectory or SimpleFSDirectory, we have to pay another price: Our code > has to do a lot of syscalls to the O/S kernel to copy bloc

Re: how do lucene read large index files?

2016-11-24 Thread Erick Erickson
Not really, as I don't know that code well, Uwe and company are the masters of that realm ;) Sorry I can't be more help there Erick On Thu, Nov 24, 2016 at 7:29 AM, Kumaran Ramasubramanian wrote: > Erick, Thanks a lot for sharing an excellent post... > > Btw, am using NIOFSDirectory, co

RE: how do lucene read large index files?

2016-11-24 Thread Uwe Schindler
Hi Kumaran, hi Erick, > Not really, as I don't know that code well, Uwe and company > are the masters of that realm ;) > > Sorry I can't be more help there I can help! > On Thu, Nov 24, 2016 at 7:29 AM, Kumaran Ramasubramanian > wrote: > > Erick, Thanks a lot for sharing an excellent p

Re: how do lucene read large index files?

2016-11-24 Thread Erick Erickson
Thanks Uwe! On Thu, Nov 24, 2016 at 9:41 AM, Uwe Schindler wrote: > Hi Kumaran, hi Erick, > >> Not really, as I don't know that code well, Uwe and company >> are the masters of that realm ;) >> >> Sorry I can't be more help there > > I can help! > >> On Thu, Nov 24, 2016 at 7:29 AM, Ku

java.lang.IndexOutOfBoundsException: Index: 9634, Size: 97 opening an index

2016-11-24 Thread David Sitsky
Hi all, I have a client who has what appears to be a corrupted Lucene index. When they try and openthe index they get: java.lang.IndexOutOfBoundsException: Index: 9634, Size: 97 at java.util.ArrayList.rangeCheck(ArrayList.java:638) at java.util.ArrayList.get(ArrayList.java:414)