Ok. Here is the parsedquery_toString <str name="parsedquery_toString"> +(((text:need^0.8 | name:need^2.0)~0.01 (text:roommat^0.8 | name:roommat^2.0)~0.01 (text:agreement^0.8 | name:agreement^2.0)~0.01)~3) (text:"need roommat agreement"~50^0.8 | name:"need roommat agreement"~50^2.0)~0.01 </str> The index was built a couple of months back. The stopword 'need' was recently added, a couple of days back. But you can see that its not getting removed at all before finding matches.
Whereas i have a local test version on my PC, the same version of solr as my work's. Same schema, config. Index was built at the same time. Its the same as my work's. I added the stopword 'need' at the same time (couple of days back). But the parsedquery_toString is different on mine: <str name="parsedquery_toString"> +(((text:roommat^0.8 | name:roommat^2.0)~0.01 (text:agreement^0.8 | name:agreement^2.0)~0.01)~3) (text:"roommat agreement"~50^0.8 | name:"roommat agreement"~50^2.0)~0.01 </str> And i get some results on my version while i get zero results in my work version. In the 'text' field definition in the schema, both index and query gets passed through the stopwordfilter. Why this discrepancy? I'm re-indexing the data on my work version. But can't re-index the data everytime i add a new stopword right. Yonik Seeley wrote: > > On Nov 29, 2007 6:26 PM, anuvenk <[EMAIL PROTECTED]> wrote: >> The schema hasn't been updated in a long time though. I have the same >> version >> of solr & the same index & configs on my local PC and that seems to >> exlude >> the stop words i added while searching. Its quite puzzling why the new >> stopwords wouldn't be taken in to account. > > It depends what you mean by "exlude the stop words i added while > searching". > If you have added those stopwords, they should be removed at query > time by any analyzer using the stop filter. Those words will remain > in the index until you reindex of course. > > Perhaps you could show the output of debugQuery=on for a sample query > and how that differs from what you expect? > > -Yonik > > -- View this message in context: http://www.nabble.com/solr-version-upgrade-tf4899944.html#a14092131 Sent from the Solr - Dev mailing list archive at Nabble.com.