Jens Kraemer wrote:
> Hi!
> 
> wildcard queries have a built in upper limit of terms they search for,
> which by default is set to 512 (according to
> http://ferret.davebalmain.com/api/classes/Ferret/Search/WildcardQuery.html).
> 
> So when you query for asdf*, Ferret expands this to all terms in your
> index starting with asdf, but will stop after collecting 512 terms, then
> go and retrieve all documents containing these 512 terms, obviously
> missing those that would in theory match your query, but do this by
> containing a matching term that wasn't retrieved in the first step.
> 
> Of course you can set the max_term count to a higher value, but in the
> long run this isn't really a solution. If I understand you correctly,
> your tuple field right now has a single term for each document, and that
> term is different for each document. Splitting up your tuple values into
> several different terms could help to reduce the number of terms needed
> to fetch for a wild card query.
> 

Interesting, thanks. Actually I can't split the tuple values up -- the 
requirement is to see those terms occur together in the same tuple, not 
just for the same document (there is a difference in this case). So, 
I'll try expanding the max_term count to see if that helps; otherwise 
I'll have to rethink the solution.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to