you'll want to look into the positionIncrementGap attribute that can be specified when defining an Analyzer for your field type ... it defines the "logical" gap between tokens in a multi-value field, so if you use a whitespace tokenizer add the names "Jane Smith" and "John Doe" you'll get the tokens "Jane", "Smith", ... John", "Doe" with a big gap between Smith and John .. so now you cna do phrase queries and as long as the slop on your phrase queries is less the the gap you used you don't have to worry about false matches on "Jane Doe"
: Date: Wed, 28 Mar 2007 17:28:47 -0400 : From: Daniel Einspanjer <[EMAIL PROTECTED]> : Reply-To: solr-user@lucene.apache.org : To: solr-user@lucene.apache.org : Subject: Best approach for indexing and querying against a multivalue : name field like directors or actors? : : I'm rather new to Solr and somewhat rusty on what little I learned on : Lucene a few years back. : : I've got some documents I want to index that have multiple name fields : such as directors or actors. I'm wanting to index them such that : querying for "Jane Doe" would have a higher score for "Jane M. Doe" : than for "John Doe", but I need to make sure that "Jane Doe" wouldn't : match a document with two directors, "Jane Smith" and "John Doe" at : all. : : If anyone has done something like this and could suggest some of the : solr filters that might be useful to me, I'd greatly appreciate it. : : Daniel : -Hoss