[Xapian-discuss] Scriptindex, what am I doing wrong?

Jim Lynch jim at fayettedigital.com
Sat Nov 4 12:01:55 GMT 2006


Olly Betts wrote:
> On Fri, Nov 03, 2006 at 12:33:13PM -0500, Jim Lynch wrote:
>   
>> I know something's wrong, but what?
>>     
>
> Looking at the code, the "date" action modifies the value it operates
> on, which is a bug.  I'll fix that, but there's a very easy workaround -
> just rearrange the actions so that date is last:
>
> date : field=modtime date=unix
>
> Then it doesn't matter than date modifies the value.
>
> Cheers,
>     Olly
>
>
>
>   
Thanks Olly

Two other point of confusion, I installed a clean 0.9.8 xapian 
libraries, omega and scriptindex.  I indexed as noted before. 

title : index=S field=title
body : unhtml index
teaser : index field=sample
date : field=modtime date=unix
node : boolean=Q unique=Q field=url

I search for the word "word" and it finds hundreds, I search for the 
word "words" it finds none.  I'm thinking scriptindex is stemming and 
omega is not.  Is that true?

Second, title:night isn't finding anything.  There is definitely a night 
in some of the titles.

I found one and went into godmode to see what was going on. 
132 	Rtelephone 
<http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Rtelephone>
122 	Rwebsite 
<http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Rwebsite>
4 	SRdate <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=SRdate>
9 	SRme <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=SRme>
9 	SRmom <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=SRmom>
20 	SRnight 
<http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=SRnight>
7 	Sdate <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Sdate>
27 	Sme <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Sme>
24 	Smom <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Smom>
61 	Snight <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Snight>
8183 	Y2006 <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=Y2006>
7923 	a <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=a>
799 	activ <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=activ>
1065 	addit <http://walnut/cgi-bin/osearch?DB=default&FMT=godmode&B=addit>

It's there so I'm thinking omega isn't configured right. 

Here are the first few lines of the template:

<html>
$set{stemmer,none}
$set{thousand,$.}$set{decimal,.}$setmap{BN,,Any 
Country,uk,England,fr,France}
$setmap{title,S}
${
$def{PREV,
$if{$ne{$topdoc,0},<INPUT TYPE=image NAME="&lt;" ALT="&lt;"
SRC="/icons/omega/prev.png" BORDER=0 HEIGHT=30 WIDTH=30>,
<IMG ALT="" SRC="/icons/omega/prevoff.png" HEIGHT=30 WIDTH=30>}
}

The setmap is there.  Is it constructed correctly?

Thanks,

Jim




More information about the Xapian-discuss mailing list