search for: add_synonym

Displaying 5 results from an estimated 5 matches for "add_synonym".

2012 Oct 04
1
Synonyms of Abbreviations
Hello, I am looking for a documentation or an example to use the synonym function. I tried this db.add_synonym("omega","xapain"); and this works by adding the flag FLAG_AUTO_SYNONYMS. If i try to use the db.add_synonym("omega","xapain is search engine "); it fails why? Can xapian use synonym for Abbreviations like MBA => Master of business administration? --Na...
2012 Jul 06
1
multiword synoyms
I am using synoyms and cannot determine how to use them in following example: $db->add_synonym('Zfoobar','Zfoo Zbar') or $db->add_synonym('Zfoobar','Zfoo AND Zbar') Or is this general not possible? MfG Felix
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
Very few people seem to be using synonym in Xapian, I recently found some problems in the use of synonyms. Normally, I think we should not contain any prefix info in synonym table except that 'Z'. For example, I have the following synonyms and prefix info: db.add_synonym("search", "find"); db.add_synonym("Zsearch", "Zfind"); db.add_synonym("foo bar", "foobar"); qp.add_prefix("title", "T"); I think my expected results of query parser should be like this: "search something" ==...
2011 Jul 28
1
Xapian and Synonyms
Hi guys I've just had a thought about something we do with our search on ReportBuyer.com: we cater for both American and British English in our searches and we have had plans for a while now to implement something that allows users to find 'colour' and 'color', 'tap' and 'faucet' by doing some clever programming. Looking at the Xapian docs, though, it appears
2015 Dec 28
3
synonym expansion for boolean prefixes.
...ally generate tag:bar or tag:fub, depending on some kind of configuration. Please CC me on any replies, I'm not subscribed to the list. ###################################################################### import xapian db=xapian.WritableDatabase("db",xapian.DB_CREATE_OR_OPEN) db.add_synonym("Kfoo","Kbar") db.commit(); qp = xapian.QueryParser() qp.set_database(db); # replacing add_prefix with add_boolean_prefix stops synonym expansion, tested with 1.2.21 qp.add_prefix("tag","K") query=qp.parse_query("tag:foo",xapian.QueryParser.FLA...