The parsing will be a trivial part of the overall
query time, so small that I wouldn't worry about
it in the least. I'd concentrate on doing the thing that
takes the least maintenance.
In the examples you're positing, it's not at all clear you
could even measure the difference...
Do what's easies
Has anyone ever measured the difference? Could it make a 10%+ difference on
a search involving around 5 terms?
On Mon, Jan 30, 2012 at 8:05 PM, Brandon Mintern wrote:
> A QueryParser has to actually parse your text and build up the
> BooleanQuery exactly as you do in your second example. Since th
A QueryParser has to actually parse your text and build up the
BooleanQuery exactly as you do in your second example. Since the
QueryParser is doing extra work that you don't have to do considering
that you already know everything about the query, your second example
is faster.
On Mon, Jan 30, 201