I'm writing an experimental phrase segmentation plugin for solr.
My current plan is to write as a SearchComponent by overriding the
queryString with the new grouped query.
ex. (university of california irvine 2009) will be re-written to
"university of calfornia irvine" "2009"
Is the SearchComponent the right class to extend for this type of logic?
I picked the component because it was one place where i could get access
to overwrite the whole query string.
Or is it better design to write it as an analyzer, tokenizer, filter or
parser plugin?
--
Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com