lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens Wyss <clemens...@mysign.ch>
Subject AW: negative wildcard query
Date Thu, 30 Jun 2011 03:36:53 GMT
Karl, I just saw, that I had a typo in my initial post. It should be:

Say I have a document with a single field "f". How can I search Documents which have not "test"
in field "f"
I tried:
-f: *test*
f: -*test*
f: NOT *test*

but no luck. Using WildCardQuery class...
Any advices?

Thx
Clemens 

> -----Urspr√ľngliche Nachricht-----
> Von: Karl Wettin [mailto:karl.wettin@gmail.com]
> Gesendet: Mittwoch, 29. Juni 2011 22:36
> An: java-user@lucene.apache.org
> Betreff: Re: negative wildcard query
> 
> You'll also need things to exclude from, eg a MatchAllDocsQuery.
> 
> 	karl
> 
> 29 jun 2011 kl. 17.25 skrev Clemens Wyss:
> 
> > Say I have a document with field "f1". How can I search Documents which
> have not "test" in field "f"
> > I tried:
> > -f: *test*
> > f: -*test*
> > f: NOT *test*
> >
> > but no luck. Using WildCardQuery class...
> > Any advices?
> >
> > Thx
> > Clemens
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
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