From: Andrew N. <and...@vi...> - 2008-03-27 13:56:55
|
Lei - I am aware of this problem and am in the midst of fixing this. Look out for a 0.8.1 release with these fixes. Andrew ________________________________________ From: vuf...@li... [vuf...@li...] On Behalf Of Lei Wang [lei...@ya...] Sent: Thursday, March 27, 2008 9:21 AM To: vuf...@li... Subject: [VuFind-General] User Query String Error Tolerance Hi, all - I don't know if I am the only one that has these problems with special user query strings, but it seems that both of my vufind instances (0.7 and 0.8) report errors when one of the following occurs: 1. "~" at the beginning of a query. 2. "^" at the beginning of a query. 3. Consecutive white spaces at the beginning of a query. 4. "!" at the end of a query. 5. Lone double quote (except with matching single quotes). 6. Unmatching parentheses (except within matching quotes). 7. "^" not followed by a number (except within matching quotes). 8. "*" at the beginning of a word (except within matching quotes). 9. "?" at the beginning of a word (except within matching quotes). 10. "-" not immedicately connecting to anything on either side (except within matching quotes). 11. Unmatching curly brackets "{}" or matching but contains no or only one item in them (except within matching quotes). 12. ";" (except within matching quotes). 13. "\" at the end of a word. Here is a sample error message from VuFind 0.8: An error has occured Unable to process query Solr Returned:org.apache.solr.core.SolrException: Query parsing error: Cannot parse '(titleStr:"~this"^15 OR (title:(~this)^5 OR title2:(~this)^2)^10 OR author:(~this)^5 OR format:(~this) OR publishDate:(~this) OR physical:(~this) OR contents:(~this) OR series:(~this) OR topic:(~this)^2 OR geographic:(~this)^2 OR genre:(~this)^2 OR subject:(~this)^2 )': Encountered "~" at line 1, column 32. I also noticed that the VuFind demo site does not have these problems. So did not forget to install anything on my server? Thanks a lot, Lei |