If I could get at the number of tokens in a query or query norms I might be able to use that in conjunction with field norms to measure how close the query is to the field in terms of number of tokens. Then regular mm could do the trick.
Sent from my Windows Phone From: Doug Turnbull Sent: 11/22/2013 4:05 PM To: Erik Hatcher; solr-user@lucene.apache.org Subject: RE: Reverse mm(min-should-match) Hmm... Not necessarily. I'd be happy with any ordering for now. Though some notion of order and slop would be nice in the future Sent from my Windows Phone From: Erik Hatcher Sent: 11/22/2013 3:32 PM To: solr-user@lucene.apache.org Subject: Re: Reverse mm(min-should-match) Does order matter? By "exact" you mean the same tokens in the same positions? Erik On Nov 22, 2013, at 2:54 PM, Doug Turnbull <dturnb...@opensourceconnections.com> wrote: > Instead of specifying a percentage or number of query terms must match > tokens in a field, I'd like to do the opposite -- specify how much of a > field must match a query. > > The problem I'm trying to solve is to boost document titles that closely > match the query string. If a title looks something like > > *Title: *[solr] [the] [worlds] [greatest] [search] [engine] > > I want to be able to specify how much of the field must match the query > string. This differs from normal mm. Normal mm specifies a how much of the > query must match a field. > > As an example, with this title, if I use normal mm=100% and perform the > following query: > > mm=100% > q=solr > > This will match the title above, as 100% of [solr] matches the field > > What I really want to get at is a reverse mm: > > Rmm=100% > q=solr > > The title above will not match in this case. Only 1/6 of the tokens in the > field match the query. > > However an exact search would match: > > Rmm=100% > q=solr the worlds greatest search engine > > Here 100% of the query matches the title, so I'm good. > > Is there any way to achieve this in Solr? > > -- > Doug Turnbull > Search & Big Data Architect > OpenSource Connections <http://o19s.com>