Re: which algorithm is used to Convert Lucene wildcard syntax into an automaton?

2016-06-10 Thread Michael McCandless
This is how it works: https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java#L80-104 It uses our automaton library, which is derived from the dk.brics.automaton package originally. Mike McCandless http://blog.mikemccandless.com On Fri,

which algorithm is used to Convert Lucene wildcard syntax into an automaton?

2016-06-10 Thread Kim Tu Truong
Hi, I am a new user. I have already built a simple application to search with wildcard query. In Lucene wildcard search, a Lucene wildcard syntax is converted into an automaton but i do not know which algorithm is used to do this. Please enlighten me? Thanks and Regards! T.

Caching lucene index

2016-06-10 Thread Abhinav Tiwari
Hi Team, We have recently implemented a search feature in our web application using Lucene where we perform dynamic indexing. We are looking for opportunities of caching the index so that we do not have to perform dynamic indexing again for the same query and query can be searched using the cached

Re: SortingMergePolicy in Lucene 6

2016-06-10 Thread Sheng
Thanks a lot for the explanation. That's all I want to know :) Cheers, On Wednesday, June 8, 2016, Michael McCandless wrote: > Sorry for the slow response: this one almost fell past the event horizon > of my todo list ;) > > Do you mean you are using document blocks (IW.addDocuments) and block

RE: Orpahned segments that cannot be force merged

2016-06-10 Thread Uwe Schindler
Hi, Hi they are not orphans, they are just used still by the index reader. The operating system prevents them from being deleted as long as an index reader is open on them. Once you are done with forceMerging, you have to reopen your index reader (e.g., using SearcherManager). The files will

Orpahned segments that cannot be force merged

2016-06-10 Thread Slav Boleslawski
Hi, I can control the number of index segments when indexing using forceMerge(), but when searching occurs during indexing, then some segments become orphans and cannot be force merged. Why?Could someone please have a look if I'm doing anything wrong. I attach the complete code for a test ca