Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [biglouis] Search not finding C# or C++

Quote Reply
Re: [biglouis] Search not finding C# or C++ In reply to
I just received an email from Alex with a possible fix. First, by default the index (if running INTERNAL), only indexes words that are 3 characters or more. To change this (like I have), so that it will index C# and C+ properly:

In your admin dir under GT/SQL/Search/Base/Indexer.pm, change:
Code:
'min_word_size' => 3,
to
Code:
'min_word_size' => 2,


After that is done, here is Alex's email on the fix:

Code:
Hmm, you could do this by editing GT/SQL/Search/Base/Common.pm and
change (around line 45):

@words = split /[^\w\x80-\xFF\-]+/, lc $text;

to:

@words = split /[^\w\x80-\xFF\-\+]+/, lc $text;

Then do a full re-index, and you should have c++ in your word list
(however by default it takes at least 3 chars to be indexed, so c+
wouldn't get indexed).

Try ou the search and if it doesn't work, you may need to edit
GT/SQL/Search/Base/Search.pm and change (around line 362):

| (\+?[\w\x80-\xFF\-\*]+),?

to:

| (\+?[\w\x80-\xFF\-\*\+]+),?

I'm not 100% sure about that part. =)

Cheers,

Alex
Subject Author Views Date
Thread Search not finding C# or C++ biglouis 1505 May 18, 2002, 8:34 AM
Thread Re: [biglouis] Search not finding C# or C++
SeanP 1461 May 18, 2002, 11:51 AM
Post Search not finding C# or C++
SeanP 1444 May 21, 2002, 5:48 PM
Post Re: [biglouis] Search not finding C# or C++
SeanP 1411 May 23, 2002, 5:49 PM