daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

Synonym support #112

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This would be handy, although I'm not sure of how best to implement it.

My first thought would be to provide a model with term name, and synonyms as 
fields.  Synonym 
would be stored against a term and then split on newlines when using 
Xapian::WritableDatabase::add_synonym.

I guess they could be stored against a particular database (as a many to many 
field), but I can't think 
of any disadvantage to storing against every database (index).

I guess a management command (add_synonyms?) would be used to add them to each 
database.

If this method is approved of, then I'll start work on it :)

Original issue reported on code.google.com by simon....@gmail.com on 23 Apr 2010 at 1:33

GoogleCodeExporter commented 9 years ago
I didn't really understand your proposal. Do you need Djapian to provide 
`add_spelling` / `add_synonym` functionality of Xapian, or you suggest to have 
a Djapian models which would store synonyms for you?

Original comment by esizi...@gmail.com on 24 Jun 2010 at 7:22