Does anybody can help on this ? Many thanks 2010/9/29 Floyd Wu <floyd...@gmail.com>
> Hi there > > I have a problem, the situation is when I issue a query to single instance, > Solr response XML like following > as you can see, the score is normal(<float name="score" value="...">) > ======================= > <response> > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">23</int> > <lst name="params"> > <str name="fl">_l_title,score</str> > <str name="start">0</str> > <str name="q">_l_unique_key:12</str> > <str name="hl.fl">*</str> > <str name="hl">true</str> > <str name="rows">999</str> > </lst> > </lst> > <result name="response" numFound="1" start="0" maxScore="1.9808292"> > <doc> > <float name="score">1.9808292</float> > <str name="_l_title">GTest</str> > </doc> > </result> > <lst name="highlighting"> > <lst name="12"> > <arr name="_l_unique_key"> > <str><em>12</em></str> > </arr> > </lst> > </lst> > </response> > > ======================= > > But when I issue the query with shard(two instances), the response XML will > be like following. > as you can see, that score has bee tranfer to a element <arr> of <doc> > ======================= > <response> > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">64</int> > <lst name="params"> > <str name="shards">localhost:8983/solr/core0,172.16.6.35:8983/solr</str> > <str name="fl">_l_title,score</str> > <str name="start">0</str> > <str name="q">_l_unique_key:12</str> > <str name="hl.fl">*</str> > <str name="hl">true</str> > <str name="rows">999</str> > </lst> > </lst> > <result name="response" numFound="1" start="0" maxScore="1.9808292"> > <doc> > <str name="_l_title">Gtest</str> > <arr name="score"> > <float name="score">1.9808292</float> > </arr> > </doc> > </result> > <lst name="highlighting"> > <lst name="12"> > <arr name="_l_unique_key"> > <str><em>12</em></str> > </arr> > </lst> > </lst> > </response> > > ======================= > My Schema.xml like following > ======================== > <field name="_l_unique_key" type="string" indexed="true" stored="true" > required="true" omitNorms="true"/> > <field name="_l_read_permission" type="string" indexed="true" > stored="true" omitNorms="true" multiValued="true"/> > <field name="_l_title" type="text" indexed="true" stored="true" > omitNorms="false" termVectors="true" termPositions="true" > termOffsets="true"/> > <field name="_l_summary" type="text" indexed="true" stored="true" > omitNorms="false" termVectors="true" termPositions="true" > termOffsets="true"/> > <field name="_l_body" type="text" indexed="true" stored="true" > multiValued="true" termVectors="true" termPositions="true" > termOffsets="true" omitNorms="false"/> > > <dynamicField name="*" type="text" indexed="true" stored="true" > multiValued="true" termVectors="true" > termPositions="true" > termOffsets="true" omitNorms="false"/> > </fields> > <uniqueKey>_l_unique_key</uniqueKey> > <defaultSearchField>_l_body</defaultSearchField> > ======================== > I don't really know what happended. Is my schema problem or is the behavior > of Solr? > please help on this. >