RE: Negative Wildcard Queries

2014-11-03 Thread Prad Nelluru
Yes, that's fair. We can't expect every query the user types to be perfect if they don't understand the query language. -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, October 31, 2014 3:42 PM To: java-user Subject: Re: Negative W

Re: Negative Wildcard Queries

2014-10-31 Thread Erick Erickson
if they put in this. > > Thanks! > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Friday, October 31, 2014 11:47 AM > To: java-user > Subject: Re: Negative Wildcard Queries > > Um not sure what that means. Are you looki

RE: Negative Wildcard Queries

2014-10-31 Thread Prad Nelluru
We have users inputing Lucene queries, so I was wondering what would happen if they put in this. Thanks! -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, October 31, 2014 11:47 AM To: java-user Subject: Re: Negative Wildcard Queries Um not

Re: Negative Wildcard Queries

2014-10-31 Thread Erick Erickson
hat. Best, Erick On Fri, Oct 31, 2014 at 10:17 AM, Prad Nelluru wrote: > Thanks! > > Is it possible to say -"hello world"* ? > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Thursday, October 30, 2014 10:15 PM > To: jav

RE: Negative Wildcard Queries

2014-10-31 Thread Prad Nelluru
Thanks! Is it possible to say -"hello world"* ? -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Thursday, October 30, 2014 10:15 PM To: java-user Subject: Re: Negative Wildcard Queries Actually, "hello world*" is possible with the Comp

Re: Negative Wildcard Queries

2014-10-30 Thread Erick Erickson
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* Best, Erick On Thu, Oct 30, 2014 at 6:29 PM, Prad Nelluru wrote: > Hi all, > > Is it po

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