[Xapian-discuss] Problems with positions and replace_document
Fernando Nemec
fernando.nemec at folha.com.br
Fri Nov 10 20:47:21 GMT 2006
Hi Rafael,
Very strange. I got the same result if I index just one document:
fnemec at repulse:~/spiffy_search# ./test -i
1
fnemec at repulse:~/spiffy_search# ./test -s
Xapian::Query((brown PHRASE 2 fox))
1
fnemec at repulse:~/spiffy_search# ./test -r
done
fnemec at repulse:~/spiffy_search# ./test -s
Xapian::Query((brown PHRASE 2 fox))
1
When I try with two documents in db, however:
fnemec at repulse:~/spiffy_search# ./test -i
1
fnemec at repulse:~/spiffy_search# ./test -i
2
fnemec at repulse:~/spiffy_search# ./test -s
Xapian::Query((brown PHRASE 2 fox))
1
2
fnemec at repulse:~/spiffy_search# ./test -r
done
fnemec at repulse:~/spiffy_search# ./test -s
Xapian::Query((brown PHRASE 2 fox))
2
Can you check if you have the same results?
Nemec
Friday, November 10, 2006, 6:34:21 PM, you wrote:
> On 11/10/06, Fernando Nemec <fernando.nemec at folha.com.br> wrote:
>>
>> Olly,
>>
>> > If not, the list is set to filter some binary attachments I think (as
>> > this rejects a lot of spam). Try making sure it's attached as text.
>> > Or perhaps it's simplest to open a bug report and attach it to that.
>>
>> yes, the list is filtering attachments. No problem. I publish my code
>> at this address:
>>
>> http://mxzypkt.folha.com.br/2006/11/10/xapian/replace.cpp
> Look my shell:
> sdm at sdm-desktop:~/Desktop$ ./test -i
> 1
> sdm at sdm-desktop:~/Desktop$ ./test -s
> Xapian::Query((brown PHRASE 2 fox))
> 1
> sdm at sdm-desktop:~/Desktop$ ./test -r
> done
> sdm at sdm-desktop:~/Desktop$ ./test -s
> Xapian::Query((brown PHRASE 2 fox))
> 1
> sdm at sdm-desktop:~/Desktop$
> looks fine to me, nothing wrong, to compile I run the command in the
> comments of the code (and changed the database dir to work here ;)
--
[]s
Fernando Nemec
fernando.nemec at folha.com.br
http://www.folha.com.br/
More information about the Xapian-discuss
mailing list