[Xapian-discuss] How to search URL field (unique Q key)?
James Aylett
james-xapian at tartarus.org
Sun Jul 30 09:57:58 BST 2006
On Sat, Jul 29, 2006 at 10:46:46PM -0800, oscaruser at programmer.net wrote:
> I ran script index on about 1800 documents, and somewhere during the
> scriptindex process of adding files to the flint db, I terminated
> the program (^C). I don't know which docs were added, from those
> that are remaining, and wanted to know if there is a way to search
> the db based on the URL field which was defined as "url : field=url
> hash boolean=Q unique=Q" in the script index?
No idea if this will actually work as it's a boundary case, but how
about omega with:
$setmap{prefix,url,Q}
$hitlist{url = $field{url}
}
and search it for url:*
The bit I'm uncertain about is whether wildcards will work like that
or not. If not, write a python, php or whatever script using the
bindings to list all terms in the database, skip_to "Q" and keep
printing until they don't start with "Q" any more.
James
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-discuss
mailing list