You request is very cryptic, actually I really discourage this kind of requests …
Give always at least basic information for : 1) Environment ( Solr you are using ? Architecture ?) 2) Domain ( Problem you are trying to solve ? Data model ? ) 3) Specific problem with a generic and detailed description 4) Some real world example of your problem Trying to decipher do you mean : 1) I want all the documents containing the term "iPhone" in a field but not the term "test" . -> field:(+iphone -test) 2) I want only documents containing for a field the term "iPhone" and nothing else In this case I would suggest to not tokenize the field of interest, maybe simple lowercase it, and a simple term query should solve the problem. Please try to reformulate this in a more "human readable form" and we cal help better and avoid to decipher :) Cheers 2015-07-02 2:51 GMT+01:00 rulinma <ruli...@gmail.com>: > search "iphone" > > > but I don't want "iphone test" content is the first record, I want minus > "test" weights , how to do this. > > thanks. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-tp4215345.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England