• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Creating STYLE.LEX

New Here ,
Jan 10, 2008 Jan 10, 2008

Copy link to clipboard

Copied

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.

Thanks.
TOPICS
Advanced techniques

Views

356

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 10, 2008 Jan 10, 2008

Copy link to clipboard

Copied

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
lex:
{
define: WHT "[ \t]" #whitespace macro
define: NL "{WHT}*\n" #newline macro
define: ALPANUM "[A-Za-z0-9]" #alpha numeric
characters
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 "{BEGINCHARS}+{MIDCHARS}+{ENDCHARS}+"
#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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 10, 2008 Jan 10, 2008

Copy link to clipboard

Copied

LATEST
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)??

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_18233&sliceId=1

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation