Re: Problem sorting long integers

2016-12-14 Thread Jaime
No, sorry, I think I'm not using SortField.Type.LONG. I'd give it a try. Thank you very much. El 13/12/2016 a las 18:53, Chris Hostetter escribió: How are you constructing your SortField at query time? Are you sure you are using SortField.Type.LONG ? Can you show us some minimally self cont

Re: Opposite of SpanFirstQuery - Searching for documents by last term in a field

2016-12-14 Thread Alan Woodward
I’ve done this before by appending a special token to text fields via a TokenFilter. It hasn’t caused a noticeable problem with term stats, and field:* still works because the token is only added if the document in question actually has data in that particular field. Alan Woodward www.flax.co.

Re: Problem sorting long integers

2016-12-14 Thread Jaime
Yes, that was it. Thanks again! El 14/12/2016 a las 9:44, Jaime escribió: No, sorry, I think I'm not using SortField.Type.LONG. I'd give it a try. Thank you very much. El 13/12/2016 a las 18:53, Chris Hostetter escribió: How are you constructing your SortField at query time? Are you sure

RE: IndexWriter and IndexReader in a shared environment

2016-12-14 Thread Siraj Haider
Hi Mike, You said "periodically calling IW.commit when you need durability". Does it mean that if the program dies without calling the IW.commit() all the index changes would be lost that were not commited? -- Regards -Siraj Haider (212) 306-0154 -Original Message- From: Michael McC

Re: IndexWriter and IndexReader in a shared environment

2016-12-14 Thread Michael McCandless
Since the last time you called IW.commit, yes. IW.commit also determines visibility to IndexReaders opened on that same directory. Mike McCandless http://blog.mikemccandless.com On Wed, Dec 14, 2016 at 1:05 PM, Siraj Haider wrote: > Hi Mike, > You said "periodically calling IW.commit when you

Altering Term Frequency in Similarity

2016-12-14 Thread Mossaab Bagdouri
Hi, I'm using Lucene 6.3.0, and trying to handle synonyms at query time. I think I've handled DF correctly with BlendedTermQuery (by returning the max DF of the synonyms). TTF is also handled by the same class. Now, I want to handle the term frequency. As far as I can tell, raw TF is given to t

Warming Indexes

2016-12-14 Thread Siraj Haider
Hi, We are in the process of moving from lucene 2.9 to 6.3. We are going to use SearcherManager and SearcherFactory classes for the first time and are wondering on how to warm our indexes the first time. Below are the snippets of code, where we create our IndexWriter and SearcherManager. And th

RE: Warming Indexes

2016-12-14 Thread Uwe Schindler
Hi, How about subclassing SearcherFactory and include warming there? https://lucene.apache.org/core/6_3_0/core/org/apache/lucene/search/SearcherFactory.html Refer especially to the last bullet point. As described there to do warming in the background without blocking in the near realtime case, u

Re: highlighting with best text fragment from multi-value field

2016-12-14 Thread Tech Behemoth
Hi all Any idea of best practice for getting fragmented highlighted string ( Lucene 5.3.2) of multi-value field? Thanks On Mon, Dec 12, 2016 at 12:11 AM, Tech Behemoth wrote: > Hi all > > How to provide highlighting for fragmented string which is created from > multi-value field using Lucene