RE: Negative Wildcard Queries

2014-11-03 Thread Prad Nelluru
ildcard Queries Probably a syntax error. Test it and see? You simply can't guarantee results if you allow users to input whatever they want though... Best, Erick On Fri, Oct 31, 2014 at 12:16 PM, Prad Nelluru wrote: > We have users inputing Lucene queries, so I was wondering what would h

RE: Negative Wildcard Queries

2014-10-31 Thread Prad Nelluru
t; Subject: Re: Negative Wildcard Queries > > Actually, "hello world*" is possible with the ComplexPhraseQueryParser as of > 4.8, see SOLR-1604 (yeah, it's been hanging around for a while). > > But to your question: Just prefix it with *:*, i.e. q=*:* -hello* > > B

RE: Negative Wildcard Queries

2014-10-31 Thread Prad Nelluru
lexPhraseQueryParser as of 4.8, see SOLR-1604 (yeah, it's been hanging around for a while). But to your question: Just prefix it with *:*, i.e. q=*:* -hello* Best, Erick On Thu, Oct 30, 2014 at 6:29 PM, Prad Nelluru wrote: > Hi all, > > Is it possible to query Lucene with a ne

Negative Wildcard Queries

2014-10-30 Thread Prad Nelluru
Hi all, Is it possible to query Lucene with a negative wildcard query like: -hello*? I know wildcards aren't allowed inside phrase queries, so -"hello world*" isn't possible. Thanks, Prad

Re: Questions about the Lucene query language

2014-10-28 Thread Prad Nelluru
translates into MatchAllDocsQuery. "hello dolly" is the same as "hello dolly"~0 -- Jack Krupansky -Original Message- From: Prad Nelluru Sent: Monday, October 27, 2014 8:57 PM To: java-user@lucene.apache.org Subject: Questions about the Lucene query language Hi everyone, I&#x

Questions about the Lucene query language

2014-10-27 Thread Prad Nelluru
Hi everyone, I'm trying to understand how to use the Lucene query language. 1. Does Lucene support negative phrase queries like -"hello dolly" ? Or do I need to subtract from some other term like: joy -"hello dolly" ? My intention is to find all documents that do not have the words "hell