lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: 'OR' search using Automaton query
Date Tue, 22 Nov 2016 10:11:50 GMT
Yes, just use Operations.union to merge each of your OR'd automata
into a single one, and then search on that automaton.

But remember that leading wildcard searches are tremendously costly:
they require a full scan of all terms in the index.

Mike McCandless

http://blog.mikemccandless.com


On Tue, Nov 22, 2016 at 12:03 AM, hariram ravichandran
<hariramravichandar@gmail.com> wrote:
> I use automaton query to combine fuzzy and wildcard query.(for example a
> query on "*lucy*" should also return "*lucene*"). That's working great.
>
> Now, if I search for "*lucy Automaton query*", I want all the documents
> containing *lucene* or *Automaton* or *query* or *lucene Automaton* or *lucene
> query* or *automaton query* or *lucene Automaton query*.
>
> Is *OR *search is possible using automaton?

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message