QueryNode / query parser performance

2017-04-12 Thread Trejkaz
So... I know none of this work is possible to contribute back to Lucene because the API I've ended up with is too different, but I thought I would share anyway. For a query with 10,000 terms: Before any changes: ~7s Change 1: Change QueryNodeImpl to hold an immutable list of children and only c

Re: Lucene synonym for multi-words and query parsers

2017-04-12 Thread Steve Rowe
Hi Nicolas, Classic QueryParser and SimpleQueryParser should work for you (see below). Some work has been done on StandardQueryParser (see ), but that work is not ready yet. AFAIK nobody has worked on enabling multi-term analysis in ComplexP

Re: Autocomplete using facet labels?

2017-04-12 Thread Erick Erickson
Bah, I continually forget that I'm on the Lucene list, sorry for the confusion. On Wed, Apr 12, 2017 at 8:10 AM, Rob Audenaerde wrote: > Thanks Erick for you reply, > > I see you refer to solr sources while I was hoping for lucene suggestions. > > I hadn't thought of the idea of reverse indexing

Re: Autocomplete using facet labels?

2017-04-12 Thread Rob Audenaerde
Thanks Erick for you reply, I see you refer to solr sources while I was hoping for lucene suggestions. I hadn't thought of the idea of reverse indexing the facet values and will consider it. Meanwhile I will try to explore how I might to use the TaxonomyIndex as well, as this should contain the

Re: Autocomplete using facet labels?

2017-04-12 Thread Erick Erickson
First take a look at autosuggest. That does some great stuff if you can build the autocomplete dictionary only periodically, which can be somewhat expensive. See: https://lucidworks.com/2015/03/04/solr-suggester/ There are lighter-weight ways to autosuggest that should be extremely fast, in partic

Autocomplete using facet labels?

2017-04-12 Thread Rob Audenaerde
I have a Lucene (6.4.2) index with about 2-5M documents, and each document has about 10 facets (for example 'author', 'publisher', etc). The facets might have up to 100.000 different values. I have a search bar on top of my application, and would like to implement autocomplete using the facets. Fo