[Xapian-discuss] I'm trying to relate what I know about Omega/Scriptindex with the actual data

Shane Spencer shane at bogomip.com
Sun Jan 15 21:02:01 GMT 2012


I spent around a full day in the xapian source code making sure I knew
all the ins and outs.. it was a much better resource than the online
documentation.  I'm mostly proficient with the python-xapian bindings
at this point now because of it :)

- Shane

On Sun, Jan 15, 2012 at 4:55 AM, Jim Lynch <jim at fayettedigital.com> wrote:
> James, thanks for the explanations.  I misread the notes.
>
> As an exercise, I'm trying to convert an existing project that currently
> uses Scriptindex and Omega to direct Xapian API calls.  I did a (I think)
> complete dump of a document with
> delve -r 565 -d database
> and I see things like
>
> subject='A typical subject'
>  with a corresponding set of terms like
>  Sa Stypical Ssubject
>
> Which is what I expect, however I have two "fields" unixdate and summary
> which I've specified as
>
> unixdate : field date=unix
> summary : field
>
> In my index file.  They are displayed in the delve output as
>
> summary=Do you remember what was wrong with the bearings?
> unixdate=1181883741
>
> I don't see a set of terms that would correspond to either of these.  Yes,
> the words (terms) are there but no prefixes to indicate how they are related
> to the field names.  I assume there is some magic and/or delve isn't dumping
> everything.
>
> The purpose of this investigation is to figure out how to add something to
> the document, storing this info.  In looking at the Document api, I only see
> how to add data, terms and values.  None of those three appear to be options
> either.
>
> Can someone enlighten me?
>
> Thanks,
> Jim.
>
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss



More information about the Xapian-discuss mailing list