Attach &debugQuery=true to the URL and look at the results, that'll show you what the query parsed as on the actual server.
Where did shards come from? I'd advise turning all the shard stuff off until you answer this question and querying the server directly, shards may be confusing the issue. Let's get to the bottom of your query problems before introducing that complexity! By Luke, I mean get a copy of the Luke program, see here: http://code.google.com/p/luke/ Run that program and point it at the index for your severs. It'll allow you to examine the contents of of the indexes at a fairly low level. Look at the fields in question and see if the data you expect to match is, indeed, there. >From what you've said, I'd guess it's some difference between the two servers, because on the surface of it I don't see why you'd be seeing the differences you claim. So either what you think is on the servers isn't there, I don't understand the problem or.... Best Erick On Wed, Nov 16, 2011 at 9:11 AM, mechravi25 <mechrav...@yahoo.co.in> wrote: > Hi, > > Thanks for the suggestions. > > The index is the same in both the servers. We index using JDBC drivers. > > We have not modified the request handler in solrconfig on either machine and > also after the latest schema update, we have re-indexed the data. > > > *We even checked the analysis page and there is no difference between both > the servers and after checking the "highlight matches" option in the field > value, the result was getting highlighted in the "term text" of Index > Analyzer. But still we confused as to why we are not getting the result in > the search page.* > > Actually i forgot to post the dynamic field declaration in my schema file > and this is how it is declared. > > <dynamicField name="idx_*" type="textgen" indexed="true" stored="true" > multiValued="true" /> > <dynamicField name="*Facet" type="string" indexed="true" > multiValued="true" stored="false"/> > > the textgen fieldtype definition is as follows: > > <fieldType name="textgen" class="solr.TextField" positionIncrementGap="100"> > <analyzer type="index"> > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > > <filter class="solr.StopFilterFactory" ignoreCase="true" > words="stopwords.txt" enablePositionIncrements="true" /> > <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" > generateintegerParts="1" catenateWords="1" catenateintegers="1" > catenateAll="1" splitOnCaseChange="1" splitOnNumerics="1" > stemEnglishPossessive="1" /> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.PhoneticFilterFactory" encoder="Soundex" > inject="true"/> > > </analyzer> > <analyzer type="query"> > > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" > ignoreCase="true" expand="true"/> > <filter class="solr.StopFilterFactory" > ignoreCase="true" > words="stopwords.txt" > enablePositionIncrements="true" > /> > <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" > generateintegerParts="1" catenateWords="0" catenateintegers="0" > catenateAll="0" splitOnCaseChange="0"/> > <filter class="solr.LowerCaseFilterFactory"/> > </analyzer> > </fieldType> > > > We have implemented shards in core DB which is in turn gets a result from > shards core(core1 and core2). This actual data is present in core2. We tried > all the options in core2 directly as well but with no success. > > The query is passed as follows : > > QueryString : idx_ABCFacet:"XXX....... ABC DEF" > > INFO: [core2] webapp=/solr path=/select > params={debugQuery=false&fl=uid,score&start=0&q=idx_ABCFacet:"XXX.......+ABC+DEF"&isShard=true&wt=javabin&fsv=true&rows=10&version=1} > hits=0 status=0 QTime=2 > Nov 16, 2011 5:44:17 AM org.apache.solr.core.SolrCore execute > INFO: [core1] webapp=/solr path=/select > params={debugQuery=false&fl=uid,score&start=0&q=idx_ABCFacet:"XXX.......+ABC+DEF"&isShard=true&wt=javabin&fsv=true&rows=10&version=1} > hits=0 status=0 QTime=0 > Nov 16, 2011 5:44:17 AM org.apache.solr.core.SolrCore execute > INFO: [db] webapp=/solr path=/select/ > params={debugQuery=on&indent=on&start=0&q=idx_ABCFacet:"XXX.......+ABC+DEF"&version=2.2&rows=10} > status=0 QTime=64 > > > > Also can you please elaborate on the 3rd point > > *3> Try using Luke to examine the indexes on both servers to determine > whether they're the same. * > > > > > Thanks. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Search-in-multivalued-string-field-does-not-work-tp3509458p3512710.html > Sent from the Solr - User mailing list archive at Nabble.com. >