Slashes generating error

sduggan
Posts: 84
Joined: Tue Mar 20, 2001 9:16 am

Slashes generating error

Post by sduggan »

We are using: Webinator 5.1.4-Windows-w/plugin

When I do a search with a "/" in them I get this error message:
Term: x/y only partially matches index expression(s)
Here's what I have in my word definition:

Word Definition:
[\alnum\x80-\xff]{1,30}
[\alnum/\x80-\xff]{1,70}
[\alnum\+\_\-\!\@\#\$\%\^\&\*\(\)\:\;\>\<\x24\x27\x2E\xa0-\xff]{1,30}
apicp keepnoise 1

any ideas?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Slashes generating error

Post by Kai »

Have you reindexed since changing the word definition? Changing it should cause a re-index (not a re-walk, a re-index) automatically, but you might want to force it with the command line:

texis profile=YourProfileName texis\scripts\webinator\dowalk\remakeindex.txt

in the Webinator install dir.
jason.elder
Posts: 15
Joined: Wed May 16, 2007 11:53 am

Slashes generating error

Post by jason.elder »

I'm getting the same thing but want to use ':' in specific cases.

I've added to the word definition
...
Category\x3a
Cost\x3a
...

and also tried
...
Category:
Cost:
...

and rewalked with the New setting in the webinator admin, but I'm still getting the issue.
The db is definitely getting Newed, as its moving from db1 to db2(and the reverse)

Do the word definitions get used for all indexes?
Using Webinator 5.1.64-Windows-w/plugin
jason.elder
Posts: 15
Joined: Wed May 16, 2007 11:53 am

Slashes generating error

Post by jason.elder »

Sorry, the full error is:

WARNING: Term `Category:' only partially matches index expression(s)
jason.elder
Posts: 15
Joined: Wed May 16, 2007 11:53 am

Slashes generating error

Post by jason.elder »

Also getting this 3 times in the HTML

<!-- 115 /webinator/search_new:2425: 'delimiters' not allowed in query -->

<!-- 115 /webinator/search_new:2425: Query `Category: Grants w/line' would require post-processing: Term `Category:' only partially matches index expression(s) -->
jason.elder
Posts: 15
Joined: Wed May 16, 2007 11:53 am

Slashes generating error

Post by jason.elder »

got rid of the delimiters not allowed message...should have RTFM, but I'm stumped by the word definition one...
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Slashes generating error

Post by mark »

Are you querying one of the standard Webinator indices created by the "Index fields" setting or an index of your own creation? If one of your own you need to do it before the call to mmIndexDone in dowalk to use your defined word definitions.
jason.elder
Posts: 15
Joined: Wed May 16, 2007 11:53 am

Slashes generating error

Post by jason.elder »

I thought indexes were handled transparently in queries.

I'm modifying the sql in collectlocalresults (in Webinator/search) to include searches on particular filters (in the Meta field)
jason.elder
Posts: 15
Joined: Wed May 16, 2007 11:53 am

Slashes generating error

Post by jason.elder »

Ah do you mean I need to create my extra index in dowalk, before updatemmindex? I couldn't find mmIndexDone in dowalk.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Slashes generating error

Post by mark »

You have old scripts if you don't have mmindexdone. You need to create your extra index in dowalk IN the function updatemmindex after it addexp's all the defined expressions but before it clears them again with delexp.
Post Reply