[Xapian-devel] Synonyms of Abbreviations

QE :: Felix Ostmann ostmann at websuche.de
Thu Oct 4 14:07:06 BST 2012


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.htm>


More information about the Xapian-devel mailing list