i tried that too ;)
http://comments.gmane.org/gmane.comp.search.xapian.general/9403
Perhaps you can try this:
MBA => Master of business administration
db.add_synonym("mba","master");
db.add_synonym("mba","business");
db.add_synonym("mba","administration");
And hope for the best ;)
When you use a stemmer, perhaps you have to write Zmaster, Z...
2012/10/4 QE :: Felix Ostmann <ostmann at qe.de>
> i tried that too ;)
>
> http://comments.gmane.org/gmane.comp.search.xapian.general/9403
>
> Perhaps you can try this:
>
> MBA => Master of business administration
> db.add_synonym("mba","master");
> db.add_synonym("mba","business");
> db.add_synonym("mba","administration");
>
> And hope for the best ;)
>
> When you use a stemmer, perhaps you have to write Zmaster, Z...
>
>
> Mit freundlichem Gru?
> Felix Ostmann
>
> -----------------------------------------------------------
> QE GmbH & Co. KG, Martinistra?e 3, D-49080 Osnabr?ck
> -----------------------------------------------------------
> Tel.: +49 (0) 541 / 40666 0, Fax: +49 (0) 541 / 40666 22
> Email: info at qe.de, Web: www.qe.de
> -----------------------------------------------------------
> AG Osnabr?ck - HRA 200252, Ust-IdNr.: DE814737310
> -----------------------------------------------------------
> Komplement?rin: QE24 GmbH, AG Osnabr?ck - HRB 200359,
> Gesch?ftsf?hrer: Ansas Meyer, Firmensitz: Osnabr?ck
> -----------------------------------------------------------
>
> Die in dieser Email enthaltenen Informationen sind vertrau-
> lich zu behandeln und ausschlie?lich f?r den Adressaten be-
> stimmt. Jegliche Ver?ffentlichung, Verteilung oder sonstige
> in diesem Zusammenhang stehende Handlung wird ausdr?cklich
> untersagt.
>
>
> 2012/10/4 Naveen A.N. <naveen at searchlabs.org>
>
>> 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?
>>
>> --Naveen.A.N
>>
>> _______________________________________________
>> Xapian-devel mailing list
>> Xapian-devel at lists.xapian.org
>> http://lists.xapian.org/mailman/listinfo/xapian-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.xapian.org/pipermail/xapian-devel/attachments/20121004/182a321c/attachment.html>