Question mark?

Post Reply
jan.punter
Posts: 54
Joined: Thu Jan 16, 2003 9:17 am

Question mark?

Post by jan.punter »

I don't seem to be able to use the question mark in my searches. For example if I try to find documents/pages with the words BAD and BID I can't just use something like this: B?D or B#D

Would this be possible?
Thanks!
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Question mark?

Post by mark »

You're trying to use an expression. The syntax for that would be "/B.D" but it would not be able to take advantage of an index. For specific multiple words you could do "(BAD,BID)" to match either (careful not to use any extra whitespace). That can use a metamorph index.
jan.punter
Posts: 54
Joined: Thu Jan 16, 2003 9:17 am

Question mark?

Post by jan.punter »

Does this mean that I won't be able to enter this (/B.D) inside the search field?
Would I have to add this to the search script as something like <$query = $query+"/B.D"> ???

Sorry to ask such 'simple' questions.
Thanks
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Question mark?

Post by mark »

In the search field you can do either
/B.D
or
(BAD,BID)
But the first will be rejected unless you do
<apicp allinear on><apicp alpostproc on>
somewhere in the search script before the query.
If you use the expression in conjunction with some other search term(s) it might not be so bad, but by itself it will have to do a linear scan of every record.
Post Reply