Activity report on

  *[JIRA] Bug SKER4950 - AbstractESPFastSearchCommand: parsefql when term start 
with = characeter*

  Scarab Link: http://sesat.no/scarab/issues/id/SKER4950
  Module: Sesat> Kernel


  Activity generated by Håvard Frøiland ([EMAIL PROTECTED]) at 12/08/2008 16:19

  *Reasons for the changes*


  *Comments*
  - By Håvard Frøiland - 12/08/2008 16:20 ---
  "{code}
--- query-api/src/main/javacc/QueryParserImpl.jj        (revision 7065)
+++ query-api/src/main/javacc/QueryParserImpl.jj        (working copy)
@@ -119,12 +119,11 @@
     | <NOT: "NOT"|"-">
     | <ANDNOT: ("ANDNOT")>
     | <INTEGER: ((<DIGIT>)+)>
-    | <WORD: 
(<LETTER>|<DIGIT>|<WORD_SYMBOL_PREFIX>)(<LETTER>|<DIGIT>|<WORD_SYMBOL_MIDDLE>)*("*")?>
+    | <WORD: (<LETTER>|<DIGIT>)(<LETTER>|<DIGIT>|<WORD_SYMBOL_MIDDLE>)*("*")?>
     | <FIELD_SUFFIX: ":">
         // remember to remove these when constructing the PhoneClause
     | <#PHONE_MIDDLE: ((" ")*<PHONE_SYMBOL>(" ")*)|(" ")+>
     | <#PHONE_SYMBOL: (".")|("-")|("/")>
-    | <#WORD_SYMBOL_PREFIX: (".")|("<")|("=")|(">")>
     | <#WORD_SYMBOL_MIDDLE: (".")|<HYPON>|("_")|("+")>
     | <#HYPON: // Different types of hypons, 
http://www.cs.tut.fi/~jkorpela/dashes.html
         [
{code}"

  - By Håvard Frøiland - 12/08/2008 16:19 ---
  "The error occurs somewhere in fast. The problem seams to be that characters 
like = < > have special meaning in a fast query. When we parse a query 
characters like .><= are considered word prefix, and will pass through. They 
are also marked as skipp characters. So if you remove the word prefix rule, the 
characters will basically be dropped. And a query like "=oslo" will just be 
oslo, and everything works. My question is: do we have any reason for keeping 
.><= as word prefixes."

  - By Håvard Frøiland - 12/08/2008 16:19 ---
  "{code}
--- query-api/src/main/javacc/QueryParserImpl.jj        (revision 7065)
+++ query-api/src/main/javacc/QueryParserImpl.jj        (working copy)
@@ -119,12 +119,11 @@
     | <NOT: "NOT"|"-">
     | <ANDNOT: ("ANDNOT")>
     | <INTEGER: ((<DIGIT>)+)>
-    | <WORD: 
(<LETTER>|<DIGIT>|<WORD_SYMBOL_PREFIX>)(<LETTER>|<DIGIT>|<WORD_SYMBOL_MIDDLE>)*("*")?>
+    | <WORD: (<LETTER>|<DIGIT>)(<LETTER>|<DIGIT>|<WORD_SYMBOL_MIDDLE>)*("*")?>
     | <FIELD_SUFFIX: ":">
         // remember to remove these when constructing the PhoneClause
     | <#PHONE_MIDDLE: ((" ")*<PHONE_SYMBOL>(" ")*)|(" ")+>
     | <#PHONE_SYMBOL: (".")|("-")|("/")>
-    | <#WORD_SYMBOL_PREFIX: (".")|("<")|("=")|(">")>
     | <#WORD_SYMBOL_MIDDLE: (".")|<HYPON>|("_")|("+")>
     | <#HYPON: // Different types of hypons, 
http://www.cs.tut.fi/~jkorpela/dashes.html
         [
{code}"
_______________________________________________
Kernel-issues mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-issues

Svar til