post processing

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

post processing

Post by Thunderstone »



Server error log message as follows:

Query 'as/400' would require post-processing

Is the slash character illegal in a text query?

Is there a way to escape it?




User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

post processing

Post by Thunderstone »




No, but it's not part of words that are indexed by default
(punctuation isn't usually search for, this keeps the index smaller and
more efficient). Thus this query cannot be completely resolved with
the index, and a direct search of data is needed (post-processing).
Since this can potentially slow a high-use server down, it is
disallowed by default.


There's no need, but you can include it in the index expression and
re-index the database, so that it can be resolved. Do gw -unindex
then gw -k"[\alnum/]{2,99}" -index. If other punctuation will be
searched for, include that in the index expression as well. See
http://www.thunderstone.com/gw25man/node40.html.

-Kai


jbennett
Posts: 2
Joined: Wed Nov 07, 2001 1:46 pm

post processing

Post by jbennett »

User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

post processing

Post by mark »

jbennett
Posts: 2
Joined: Wed Nov 07, 2001 1:46 pm

post processing

Post by jbennett »

I read the description of the -k, but I'm having trouble understanding it. I basically want to search for words with - in the middle of 1 or more letters on each side (i.e. a^* - b^* where a or b are any alphanumeric character).
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

post processing

Post by mark »

In that case you can use an expression such as:

-k"\alnum{1,30}" -k"\alnum{1,30}-\alnum{1,30}"
Post Reply