[Xapian-discuss] Indexing and searching on a custom data type

James Aylett james-xapian at tartarus.org
Wed Jul 8 15:33:54 BST 2009


On Wed, Jul 08, 2009 at 04:24:02PM +0200, Thomas Chambon wrote:

> >Alternatively, you can indeed implement this in code. For sorting,
> >look at Xapian::Sorter, and for matching look at Xapian::MatchDecider
> 
> The problem is that my custom data type is not a string, or a date or an
> integer. It is more like a series of intervals (An interval is
> represented by two dates). With postgresql I have created a custom data
> type to stock a vector of intervals. But this type doesn't exist in
> xapian, so it can't be indexed. 

Can you not index it as several terms? That seems the logical approach
to encountering a vector.

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-discuss mailing list