lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Elworthy" <d...@lingomotors.com>
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 = index.search(query);

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

Printing the query with
      System.err.println(parsedQuery.toString("main"));
gives
	{Text:bargain-y}


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:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message