Thomas Chambon
2009-Jul-08 09:08 UTC
[Xapian-discuss] Indexing and searching on a custom data type
Hello, I'm working with Xapian (combined to acts_as_xapian on ruby on rails) and Postgresql. I implemented a custom data type on postgresql. I would like to index a table using that custom type as a term with xapian and being able to process searches and sorting with that term. I think I will have to create a new matcher or something like that. Is it possible to do that ? And after doing that, should I make changes on ruby binding too ? Or maybe there is a simpler way to achieve that ? Thanks a lot, Thomas C.
James Aylett
2009-Jul-08 10:53 UTC
[Xapian-discuss] Indexing and searching on a custom data type
On Wed, Jul 08, 2009 at 11:08:12AM +0200, Thomas Chambon wrote:> I'm working with Xapian (combined to acts_as_xapian on ruby on rails) > and Postgresql. I implemented a custom data type on postgresql. I would > like to index a table using that custom type as a term with xapian and > being able to process searches and sorting with that term.I think you should just be able to add (some suitable representation of it) as a term, and probably also as a document value (for sorting). Without knowing more (such as what the custom data type is, and how you expect to search on it) I can't recommend anything more detailed. J -- James Aylett talktorex.co.uk - xapian.org - uncertaintydivision.org