That's because the phrases are being tokenized and then indexed by Solr. You have to define a new fieldType which is not tokenized. http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.KeywordTokenizerFactory
I'm not sure if it would solve your problem On Tue, Oct 25, 2011 at 5:46 AM, Radha Krishna Reddy < radhakrishn...@gmail.com> wrote: > Hi, > > when i indexed words like 'Joe Tom' and 'Terry'.When i do prefix query like > q=t*,i get both 'Joe Tom' and Terry' as the results.But i want the result > for the complete string that start with 'T'.means i want only 'Terry' as > the > result. > > Can i do this? > > Thanks and Regards, > Radha Krishna. > -- Alireza Salimi Java EE Developer