I still think this is one of the best ideas that someone has come up with in years.
In many ways it would be used in most queries if anyone wanted to look at the field indexes or the query parsed and get better results. Maybe people are not talking about it because mm=1, mm=0 is still overly confusing? This got me thinking - why not add mm in the solrconfig.xml in the pipeline for a Field Type? Similar to WhitespaceTokenizer? We could call it "MustMatch" and set a minimum, maximum and words... Then we could set it on the index, or query side as needed... ? Thoughts? On Fri, Nov 22, 2013 at 1:14 PM, Bill Bell <billnb...@gmail.com> wrote: > This is an awesome idea! > > Sent from my iPad > > > On Nov 22, 2013, at 12: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> > -- Bill Bell billnb...@gmail.com cell 720-256-8076