Hello, Why not "To:local.one -(To:[* TO local.one} To:{local.one TO *)" ?
On Wed, Oct 12, 2016 at 7:59 PM, Valentin Popov <valentin...@gmail.com> wrote: > Hi all, > > I broke my mind to figure out one search problem. I have a field «To» that > store domains. Like example To:local.one, other.one, third.one. I have a > set of a domain’s that are local, in this example it is «local.one», and > set of non local domains are infinitive. I need to search all documents > that contains non local one domains. > > Here are 3 documents: > 1. To:local.one, other.one, third.one, > 2. To:other.one, third.one, > 3. To:local.one. > > So for my query I expect 1, 2 documents because 1 contains not only local > domains and 2 all non local domains. I can setup set of non local domains, > because it is infinitive. Is it possible some how make a query to achieve > such expectations? > > Regards, > Valentin > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Sincerely yours Mikhail Khludnev