Re: Wrong ID in explain() method.

2017-12-28 Thread Vadim Gindin
If I check GET myindex/mytype/342 Nothing is found. I suppose there is a name conflict and Lucene erroneously finds "id" of a nested object (category from a list) and erroneously assumes that it is an ID of a whole document. Is that possible? Is "id" string is reserved word for Lucene? Regards

Re: Lucene with Database

2017-12-28 Thread Kumar, Santosh
Basically, I need indexing only for fuzzy search on entities. So, I’m thinking to create Index out of DB tables (for the search term) and store it on server (cloud foundry, yet to figure out how to achieve this). Now whenever, a user creates/updates/deletes any entity(es), I would like to perfor

Re: index sorting merge

2017-12-28 Thread Yonghui Zhao
Got it, thanks! my version is 4.10.4 which is tooo old 2017-12-29 5:31 GMT+08:00 Michael McCandless : > You should upgrade to newer versions of Lucene, where all segments are > sorted, not just merged segments. > > Mike McCandless > > http://blog.mikemccandless.com > > On Thu, Dec 28, 2017 at

Re: index sorting merge

2017-12-28 Thread Michael McCandless
You should upgrade to newer versions of Lucene, where all segments are sorted, not just merged segments. Mike McCandless http://blog.mikemccandless.com On Thu, Dec 28, 2017 at 11:13 AM, Yonghui Zhao wrote: > Hi, > > I specified a SortingMergePolicy in my case. I find only the first N-1 > segm

Re: may be lucene bug

2017-12-28 Thread Michael McCandless
I think there's a bug in your code: this line: doc.doc <= leaf.docBase + leaf.reader().maxDoc()) should be < not <=. Mike McCandless http://blog.mikemccandless.com On Thu, Dec 28, 2017 at 6:15 AM, 291699763 <291699...@qq.com> wrote: > Lucene version:6.6.0 > > when Index > document.add(ne

may be lucene bug

2017-12-28 Thread 291699763
Lucene version:6.6.0 when Index document.add(new BinaryDocValuesField("CBID.CCID", new BytesRef(myValue))); and when search int totalHits = indexSearcher.count(SpanNearQuery);         int from = 0;         int size = 1;         int pageTime = 0;         int loadTime = 0;         Set fieldsT

index sorting merge

2017-12-28 Thread Yonghui Zhao
Hi, I specified a SortingMergePolicy in my case. I find only the first N-1 segments are sorted as expected, the last segment is still disordered when I call forceMerge(N), N > 1, I think it is by design, but is there any way to make all segments sorted. Thanks !