Re: Multiple partial match

2014-03-03 Thread Zwer
AFAICS tf(name, 'co') returns 0 on the {id:1, name:'Coca-Cola Company'} because it does not support partial match. tf(name, 'company') will return 1 -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-partial-match-tp4120886p4120919.html Sent from the Solr - User maili

Re: Multiple partial match

2014-03-03 Thread Jack Krupansky
Add a function query boost that uses the term frequency, "tf": bf=tf(name,'co') -- additive boost boost=tf(name,'co') -- multiplicative boost That does of course require that term frequency is not disabled for that field in the schema. You can multiply the term frequency as well in the fun