Page 1 of 2

Slashes generating error

Posted: Thu Apr 20, 2006 3:27 pm
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?

Slashes generating error

Posted: Thu Apr 20, 2006 5:47 pm
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.

Slashes generating error

Posted: Wed Dec 05, 2007 2:30 pm
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

Slashes generating error

Posted: Wed Dec 05, 2007 2:35 pm
by jason.elder
Sorry, the full error is:

WARNING: Term `Category:' only partially matches index expression(s)

Slashes generating error

Posted: Wed Dec 05, 2007 2:41 pm
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) -->

Slashes generating error

Posted: Wed Dec 05, 2007 2:53 pm
by jason.elder
got rid of the delimiters not allowed message...should have RTFM, but I'm stumped by the word definition one...

Slashes generating error

Posted: Wed Dec 05, 2007 3:14 pm
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.

Slashes generating error

Posted: Wed Dec 05, 2007 3:21 pm
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)

Slashes generating error

Posted: Wed Dec 05, 2007 3:46 pm
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.

Slashes generating error

Posted: Wed Dec 05, 2007 4:08 pm
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.