File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes Lucene Search fails when u enter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Lucene Search fails when u enter "a"" Watch "Lucene Search fails when u enter "a"" New topic
Author

Lucene Search fails when u enter "a"

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
in this forum
http://www.jforum.net/search/filters.page
enter a and click serch
the following error has occurred

the error is not occurred by chance ,it occcured everytime when i search for a

An error has occurred.

For detailed error information, please see the HTML source code, and contact the forum Administrator.

org.apache.lucene.queryParser.ParseException: Cannot parse '': Encountered "EOF" at line 1, column 0.
Was expecting one of:
NOT ...
"+" ...
"-" ...
"(" ...
"*" ...
QUOTED ...
TERM ...
PREFIXTERM ...
WILDTERM ...
"[" ...
"{" ...
NUMBER ...
[originally posted on jforum.net by gregjhonson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I think this may have to do with what kind of words / letters are excluded from the search.

After all, 'a' pretty much is in almost any post and doesnt really say much in general
[originally posted on jforum.net by Sid]
 
wood burning stoves
 
subject: Lucene Search fails when u enter "a"