[Xapian-discuss] searching categories

james cauwelier james.cauwelier at gmail.com
Mon Apr 27 12:13:20 BST 2009


Thanks for the explanation.  However, this doesn 't explain why I don't find
anything for '+category:boeken' which is indexed as 'XCATEGORYboeken'.  This
should stem to 'boek' in dutch.

James

2009/4/27 James Aylett <james-xapian at tartarus.org>

> On Mon, Apr 27, 2009 at 10:08:38AM +0200, james cauwelier wrote:
>
> > I am trying to index categories and to search within them.  I index the
> > category text with prefix XCATEGORY and when I search for 'twilight box'
> I
> > get following results.  The end of each line shows the indexed category,
> eg.
> > 'Engelse boeken' for the first result.  Adding '+category:engelse' or
> > '+category:boeken' to the search query does not give any results.
>
> You are adding (eg) "XCATEGORYEngelse boeken" as a term. However the
> way the query parser expects this to be added, is for you to use
> TermGenerator or similar to index the text "Engelse boeken" with a
> prefix of "XCATEGORY". If you do this, you'll end up with two terms,
> "XCATEGORYEngels" and another one for boeken (depending on what that
> stems to). Then searching with the prefix should work as you desire.
>
> J
>
> --
>  James Aylett
>
>  talktorex.co.uk - xapian.org - uncertaintydivision.org
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>


More information about the Xapian-discuss mailing list