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
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
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
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
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)'.
-
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
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
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
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
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
10 matches
Mail list logo