[Xapian-discuss] Multiple matches in the same file

Pedro Fortuny Ayuso pfortuny at gmail.com
Fri May 11 08:04:41 BST 2007


Yes that is what I have gathered from reading the doc. I shall
try to think about something.

Thanks,

Pedro.
El 11/05/2007, a las 5:48, Olly Betts escribió:

> On Sun, May 06, 2007 at 08:36:59PM +0200, Pedro Fortuny Ayuso wrote:
>> The "problem" I wanted to state (informally, not technically) is:  
>> If you
>> search "banana", not just getting a list of the documents (web pages,
>> for example) where banana appears (this is what google does), but  
>> a list
>> of [documents + places] where it appears. That would mean, documents
>> appear a lot of times for the same query.
>
> You can look at the positions in a particular document where "banana"
> appears using PositionIterator.  But there's not any mechanism for
> looking at where a Query or a group of terms appear in a document.  It
> should be possible to add one, but it needs some criteria for what it
> means for a Query to match a position in a document.
>
> Cheers,
>     Olly

Pedro Fortuny Ayuso
pfortuny at gmail.com      http://pfortuny.sdf-eu.org
C/Capuchinos 14, 1-S. 47006 Valladolid. SPAIN





More information about the Xapian-discuss mailing list