Thanks Tim, I'll commit a fix shortly ...
Mike McCandless
http://blog.mikemccandless.com
On Thu, Sep 12, 2013 at 2:59 PM, Allison, Timothy B. wrote:
> Mike,
>
> Thank you. I opened https://issues.apache.org/jira/browse/LUCENE-5206. This
> should be a trivial javadoc update. Again, apologie
Mike,
Thank you. I opened https://issues.apache.org/jira/browse/LUCENE-5206. This
should be a trivial javadoc update. Again, apologies to all if I missed this
point in the documentation.
Best,
Tim
-Original Message-
From: Michael McCandless [mailto:luc...@mikemccandless.com]
Queries have a syntax, with terms and operators. If no operators, there is
an implicit operator (AND/OR = mandatory/optional). Generally a sequence of
terms will always generate a BooleanQuery.
So, any time you use some lexical construct that has meaning to the query
parser that you don't want
You're not escaping white space, so your input will be a sequence of terms,
which should generate a BooleanQuery. What is the last clause of the BQ? It
should be your PrefixQuery.
-- Jack Krupansky
-Original Message-
From: Ankit Murarka
Sent: Thursday, September 12, 2013 11:25 AM
To:
The trailing asterisk in your query input is escaped with a backslash, so
the query parser will not treat it as a wildcard.
-- Jack Krupansky
-Original Message-
From: Ankit Murarka
Sent: Thursday, September 12, 2013 10:19 AM
To: java-user@lucene.apache.org
Subject: Query type always B
BingoThis has solved my case... Thanks a ton..!!
Does this mean any input containing spaces and query being parsed using
QueryParser will result in Query type as Boolean Query UNLESS white
space is escaped..
So if the input contains white space and parsed using QueryParser it
will eventu
I also tried it with this query:
*
I am still getting it as Boolean Query.. It should be Prefix...
On 9/12/2013 8:50 PM, Jack Krupansky wrote:
The trailing asterisk in your query input is escaped with a backslash,
so the query parser will not treat it as a wildcard.
-- Jack Krupansky
-O
If I remove the escape call from the function, then it works as
expected.. Prefix/Boolean/Wildcard..
But this is NOT what I want... The escape should be present else I will
get lexical error in case of Prefix/Boolean/Wildcard since my input will
definitely contain special characters...
Help
Hello.
I am faced with a trivial issue: Everytime my Query is being fired as a
Boolean Query...
Providing Input : \*
This input is provided. Since this contains special characters I use
escape method of QueryParser (removed escaping for * and ? since they
are needed for WildCard and Prefix
I think so? The default prefixLength is 0 ...
Just make sure you're not hitting the maxExpansions limit (default is
50). Ie, if your index has many other terms within edit distance 2 of
"ab" or edit distance 1 of "x" then then may cause your example "abcd"
to rank below the top 50, and be pruned
10 matches
Mail list logo