Re: Lucene 3.5 Query Parser Question

2012-07-11 Thread Ian Lea
I think you'll have to build the query up in code. RegexQuery in the contrib queries package should be able to take care of #[0-9]. BooleanQuery bq = new BooleanQuery(); PrefixQuery pq = new PrefixQuery(...) // # RegexQuery rq = new RegexQuery(...) // #[0-9] bq.add(pq, ); bq.add(rq, ...); an

Lucene 3.5 Query Parser Question

2012-07-11 Thread Dave Seltzer
Hello, I'm interested in searching a MemoryIndex to find occurrences of HashTags. To do this I'm trying to use the following query: #* -#[0 TO 9] My goal with this query is to look for any word starting with "#" except for words like "#1". However, when I parse this query, the query parser turn

Re: FWD: Re: parser question

2006-09-08 Thread Michael D. Curtin
If your question is why are the queries '(field:software field:engineer)' and '(+field:software +field:engineer)' returning the same results, it could be because none of your documents have *only* "software" *or* "engineer", i.e. they all have both words or neither. You could tes

FWD: Re: parser question

2006-09-08 Thread Chris Salem
any help with this? Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] - Forwarded Message - To: Mark Miller <[EMAIL PROTECTED]> From: Chris Salem <[EMAIL PROTECTED]> Sent: Wed 9/6/2006 3:58:49 PM Subject: Re: parser question its an index of 10 fields and about 10

Re: parser question

2006-09-06 Thread Mark Miller
yes its ANDing them. Doing the query 'software engineer', 'software OR engineer', 'software AND engineer' all return the same results. the generated queries for them respectively are '(field:software field:engineer)', '(field:software field:engineer)' and '(+field:software +field:engineer)'.

Re: parser question

2006-09-06 Thread Erick Erickson
- To: java-user@lucene.apache.org From: Mark Miller <[EMAIL PROTECTED]> Sent: Tue 9/5/2006 5:38:50 PM Subject: Re: parser question QueryParser.setDefaultOperator(Operator op) Chris Salem wrote: > With all the parsers I have tried a space in a query, such as doing a search for "sales

Re: parser question

2006-09-06 Thread Mark Miller
iller <[EMAIL PROTECTED]> Sent: Tue 9/5/2006 5:38:50 PM Subject: Re: parser question QueryParser.setDefaultOperator(Operator op) Chris Salem wrote: With all the parsers I have tried a space in a query, such as doing a search for "sales manager", interprets the space as

parser question

2006-09-06 Thread Chris Salem
46.5214 x5458 [EMAIL PROTECTED] - Original Message - To: java-user@lucene.apache.org From: Mark Miller <[EMAIL PROTECTED]> Sent: Tue 9/5/2006 5:38:50 PM Subject: Re: parser question QueryParser.setDefaultOperator(Operator op) Chris Salem wrote: > With all the parsers I have tr

Re: parser question

2006-09-05 Thread Mark Miller
QueryParser.setDefaultOperator(Operator op) Chris Salem wrote: With all the parsers I have tried a space in a query, such as doing a search for "sales manager", interprets the space as an OR, is there a way to change it so that it interprets a space as an AND? Chris Salem 440.946.5214 x5458

parser question

2006-09-05 Thread Chris Salem
With all the parsers I have tried a space in a query, such as doing a search for "sales manager", interprets the space as an OR, is there a way to change it so that it interprets a space as an AND? Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] (The following links were included with this e