On 7/21/07, Alessandro Ferrucci <[EMAIL PROTECTED]> wrote:
... the user could enter the following combinations of words: ... <WORD> <WORD> ...where the second instance is either <last-name> <first-name> OR <first-name> <last-name>. ...
The dismax handler can indeed search terms in several fields, but I'd also suggest, as an alternative, copying all names to an additional "allnames" field at indexing time. This is done using <copyfield> in you schema.xml, see http://wiki.apache.org/solr/SchemaXml and the Solr example schema.xml. You can then search in this "allnames" field when you don't know if terms belong to the first or last names, and also easily combine this with other searches, boost it, etc. -Bertrand