On Fri, Dec 01, 2006 at 02:52:31PM +0100, Henrik Zagerholm wrote:
> Hi list,
> 
> I'm new to ferret and I wonder what is the best way to search if I  
> know one fields id and want to search on its content.
> I have experimented with FilteredQuery but I don't know if this is  
> the best way.

interesting question, but I'm afraid I can't give a definite answer.

I'd guess that all you can do is try out what is faster - the query
filter or an added boolean clause in your query. 

In general I wouldn't expect any speed difference in a query matching a
single document issued with or without an additional clause matching the 
id field of that document. 

There will be some speed improvement if your query matches more
documents, but mainly because you narrow the result set that Ferret has
to return to down to one element, not because search is faster.

Jens

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to