[Xapian-discuss] Trying to get omegascript configured to support multiple dbs

Jim Lynch jim at fayettedigital.com
Sat Jan 14 11:17:56 GMT 2006


No, you're right, as usual. ;)

Thanks,
Jim.
Olly Betts wrote:

>On Sat, Jan 07, 2006 at 09:32:18AM -0500, Jim Lynch wrote:
>  
>
>>Perhaps, but here is the url generated when I check only the test DB 
>>selection:
>>
>>http://localhost/cgi-bin/omega?P=yifan+ram&DB=tst.db&DEFAULTOP=or&DB=tst.db%2Fdefault&FMT=query&xP=yifan.ram.&xDB=tst.db%2Fdefault&xFILTERS=--O
>>Something in there is doing something strange.  There are two DB 
>>parameters and they both list both DBs.
>>    
>>
>
>No, you have two DB different parameters, and one xDB parameter:
>
>DB=tst.db
>DB=tst.db/default
>xDB=tst.db/default
>
>The xDB is used to record what the previous database search was - if the
>user switches database we want to reset the results to page 1 and clear
>any relevance feedback judgements, and this is how we track that.
>
>It's very hard to know from the information given, but my guess is that
>you've not removed this line from the default query template:
>
>$if{$dbname,<INPUT TYPE=hidden NAME=DB VALUE="$html{$dbname}">}
>
>So that would setting DB to the value from the previous search, and
>you're also setting it from the checkboxes.  But I could be way off.
>
>Cheers,
>    Olly
>
>
>
>  
>




More information about the Xapian-discuss mailing list