and the caveat that all fields would need to be declared in the
solrconfig.xml (or get used for both fields)
this could work... would also need to augment the response with the
name of the dictionary, or assert that something will be written all
the time (so you could know the 2nd <lst name=spelling> would be for
the 2nd configured dictionary.
On Jul 16, 2008, at 8:06 AM, Grant Ingersoll wrote:
Another thought that might work:
Declare two separate components, one for each field and then
implement a QueryConverter that takes in the field and only extracts
the tokens for the field or choice.
This is a definite workaround, but I think it might work. Hmm,
except we only have one QueryConverter....
-Grant
On Jul 15, 2008, at 8:56 PM, Ryan McKinley wrote:
I have a use case where I want to spellcheck the input query across
multiple fields:
Did you mean: location = washington
vs
Did you mean: person = washington
The current parameter / response structure for the spellcheck
component does not support this kind of thing. Any thoughts on how/
if the component should handle this? Perhaps it could be in a
requestHandler where the params are passed in as json?
spelling={ dictionary="location",
onlyMorePopular=true}&spelling={ dictionary="person",
onlyMorePopular=false }
Thoughts?
ryan