2 Replies Latest reply on Jan 10, 2008 4:59 PM by corey_mcm

    Creating STYLE.LEX

      I need to be able to search on criteria containing periods, which Verity search doesn't seem to like. From what I've read I need to create the STYLE.LEX file so that I can search on criteria containing non-std characters (ie: periods), but I can't seem to find any resources on how this file should be created or structured.

      Any help would be GREATLY appreciated, as I've been banging my head against the wall on this one for quite a while.

        • 1. Re: Creating STYLE.LEX
          corey_mcm Level 1
          FINALLY.. found the solution to this problem. Hidden in an old legacy CF5 document. I'll post it here incase anyone else finds it useful.

          The style.lex file to allow searching on criteria containing periods:
          $control: 1
          $charmap: 8859
          define: WHT "[ \t]" #whitespace macro
          define: NL "{WHT}*\n" #newline macro
          define: ALPANUM "[A-Za-z0-9]" #alpha numeric
          define: SPECIAL "[/&\\-]" #the special
          chars (punct)
          define: BEGINCHARS "[A-Za-z0-9']" # Valid chars
          for the start of word
          define: MIDCHARS "[A-Za-z0-9&]" # Valid
          chars for the middle of word
          define: ENDCHARS "[A-Za-z0-9']" # Valid chars
          for the end of word
          #token: WORD "[{ALPHANUM}+{SPECIAL}]+" #word (extended)token: WORD "[A-Za-z0-9\\-\\.]+" #word (alternate)
          token: WORD "[0-9]+\\.[0-9]+" #word
          token: EOS "[.?!]" #end of sentence
          token: NEWLINE "{NL}" #single end-of-line
          token: PARA "^([ \t]*\n)+" #end of paragraph
          token: WHITE "{WHT}" #whitespace
          token: PUNCT "." #all other text

          This file will be placed inl
          For Unix:

          /opt/cfusion/verity/common/style/custom and /opt/cfusion/verity/common/style/file

          For Windows:

          C:\CFusion\Verity\Common\style\file and C:\CFusion\Verity\Common\style\custom
          • 2. Re: Creating STYLE.LEX
            corey_mcm Level 1
            I still don't seem to be returning all results...

            I'm searching for instances of variable names within coldfusion source code - should the "internet" search type (and all characters in lower case) perform a full-text search looking for substrings of the criteria (not case-sensitive)??