[Xapian-discuss] I sometimes wonder if I'm losing it.

Jim jim at fayettedigital.com
Wed Aug 22 15:03:46 BST 2007


James Aylett wrote:
> On Wed, Aug 22, 2007 at 09:37:22AM -0400, Jim wrote:
>
>   
>>>> http://<uri>/cgi-bin/omega.cgi?DB=db2&P=Atikigod
>>>> 26      Atikigo> 
>>>> <http://208.76.81.207/cgi-bin/omega.cgi?DB=db2&FMT=godmode&B=Atikigod>
>>>>         
>>> When omega search into database, it will "look for" `atikigod`, but
>>> there are only `Atikigod`, which means that `tikigod` are prefixed
>>> with `A`
>>>       
>> The A prefix implies author.  I thought that this was the proper method 
>> of searching for a prefixed term. 
>>     
>
> You're better off using prefixes in the query parser. You need to
> $setmap{} the prefix map and then you can use author:tikigod -
> otherwise the query parser may do strange things to 'Atikigod' while
> generating the terms to search for.
>
> J
>
>   
That's what I was originally trying to do but it didn't work, so I 
dropped back to what I though would work.

Turns out the reason author:tikigod didn't work was because I didn't do 
the setmap soon enough.  :(

Thanks,
Jim.



More information about the Xapian-discuss mailing list