[Xapian-discuss] Re: question
federico.schwindt at gmail.com
Thu Mar 15 20:01:18 GMT 2007
To add more information to my original mail, allterms() does return
`hi_how_are_you', so the query is really what I'm missing here, or to
be exact, how do I need to perform the query to return this term.
On 3/15/07, Federico Schwindt <federico.schwindt at gmail.com> wrote:
> I'm using xapian (0.9.10) for a work related project and I've found
> something, not sure whether is a bug or not.
> When indexing the following file contents:
> using doc.add_posting('hi_how_are_you', pos), it index the term as
> one entity, but when doing the query, as it treats underscores as
> phrase separator, it does:
> Xapian::Query((hi:(pos=1) PHRASE 4 how:(pos=2) PHRASE 4 are:(pos=3)
> PHRASE 4 you:(pos=4)))
> So my question is, when indexing documents that contains terms with
> underscores, how I can later retrieve the term?
More information about the Xapian-discuss