[Xapian-discuss] Always returning ALL the documents matching a query
James Aylett
james-xapian at tartarus.org
Mon Dec 29 11:58:03 GMT 2008
On Mon, Dec 29, 2008 at 04:35:43AM -0500, tata 668 wrote:
> Since there are more criterias than just the indexed text, how could
> I use Xapian without asking it to return ALL documents matching the
> main search query?
You can add terms to your Xapian database that represent the other
variables you want to restrict searches to. One common way of doing
this is to use omega-style prefixed terms
<http://xapian.org/docs/omega/termprefixes.html>, which is compatible
with the QueryParser and TermGenerator.
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-discuss
mailing list