lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Elworthy" <>
Subject Possible query processing bug.
Date Thu, 18 Apr 2002 19:56:34 GMT
I have some code which submits a query to Lucene and gets some results.
It is fine most of the time, but there are some queries which cause a
java.lang.OutOfMemoryError. An example of such a query is:
  {bargain Y}
The brackets {...} don't mean anything special - it just happens to be a
query in the test set.

The code looks something like this:

    Query parsedQuery = QueryParser.parse(query, "Text", analyzer);
    Hits h =;

analyzer is just a StandardAnalyzer with an empty stop word list, and
index is an IndexSearcher. 

Printing the query with

Any ideas what the problem could be and how to fix it, short of just
removing the { and } characters?

-- David Elworthy

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message