lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: complex disjoint search query
Date Wed, 12 Oct 2016 18:04:30 GMT
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.po@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Sincerely yours
Mikhail Khludnev

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message