[Xapian-discuss] searching categories
james cauwelier
james.cauwelier at gmail.com
Tue Apr 28 09:40:02 BST 2009
I am still not getting it...
Here is some testing I have done. I have removed the space, so that I have
a unique indexable term. Why can I index 'piep' and find it in a query,
while indexing and querying 'engelseboeken' doesn't seem to work in the same
way?
INDEXING 'engelseboeken' (without spaces)
--------------------------------------------------------------------------------------
[james at dev01 batch]$ php indexProducts.php
Indexing 1
Categorie: XCATEGORYengelseboeken
Position: 26
Weight: 100
[james at dev01 batch]$ php search.php --search '+category:engelseboeken'
Parsed query is: Xapian::Query(XCATEGORYengelseboek:(pos=1))
0 results found:
INDEXING (with test category 'piep')
--------------------------------------------------------------------------------------
[james at dev01 batch]$ php indexProducts.php
Indexing 1
Categorie: XCATEGORYpiep
Position: 26
Weight: 100
[james at dev01 batch]$ php search.php --search '+category:piep'
Parsed query is: Xapian::Query(XCATEGORYpiep:(pos=1))
1 results found:
1: 100% docid=334449 [Twilight (Meyer, Stephenie), EAN: 9780316160179
RELEASE 2005-05-17 LANGUAGE E COVER CATEGORY Engelse boeken]
2009/4/27 James Aylett <james-xapian at tartarus.org>
> On Mon, Apr 27, 2009 at 01:13:20PM +0200, james cauwelier wrote:
>
> > 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.
>
> Yes it does, because it will be using XCATEGORYboek not
> XCATEGORYboeken (by analogy with its using XCATEGORYengel for
> category:engelse).
>
> 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