Hi,

I use
<uniqueKey>DOC_ID</uniquekey>
in schema.xml

I think this is the default unique id that is used for matching.  Someone
correct me if I am wrong.

P.



On Thu, May 12, 2011 at 11:01 AM, Bob Sandiford <
bob.sandif...@sirsidynix.com> wrote:

> Don't you need to include your unique id field in your 'fl' parameter?  It
> will be needed anyways so you can match up the highlight fragments with the
> result docs once highlighting is working...
>
> Bob Sandiford | Lead Software Engineer | SirsiDynix
> P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com
> www.sirsidynix.com
> Join the conversation - you may even get an iPad or Nook out of it!
>
> Like us on Facebook!
>
> Follow us on Twitter!
>
>
>
> > -----Original Message-----
> > From: Ahmet Arslan [mailto:iori...@yahoo.com]
> > Sent: Thursday, May 12, 2011 7:10 AM
> > To: solr-user@lucene.apache.org
>  > Subject: Re: Document match with no highlight
> >
> > > URL:
> > >
> > http://localhost:8983/solr/select?indent=on&version=2.2&q=DOC_TEXT%3A%2
> > 23+1+15%22&fq=&start=0
> > >
> > &rows=10&fl=DOC_TEXT%2Cscore&qt=standard&wt=standard&debugQuery=on&expl
> > ainOther=&hl=on&hl.fl=DOC_TEXT&hl.maxAnalyzedChars=-1
> > >
> > > XML:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <response>
> > >   <lst name="responseHeader">
> > >     <int name="status">0</int>
> > >     <int name="QTime">19</int>
> > >     <lst name="params">
> > >       <str name="explainOther"/>
> > >       <str
> > > name="indent">on</str>
> > >       <str
> > > name="hl.fl">DOC_TEXT</str>
> > >       <str
> > > name="wt">standard</str>
> > >       <str
> > > name="hl.maxAnalyzedChars">-1</str>
> > >       <str name="hl">on</str>
> > >       <str name="rows">10</str>
> > >       <str
> > > name="version">2.2</str>
> > >       <str
> > > name="debugQuery">on</str>
> > >       <str
> > > name="fl">DOC_TEXT,score</str>
> > >       <str name="start">0</str>
> > >       <str name="q">DOC_TEXT:"3 1
> > > 15"</str>
> > >       <str
> > > name="qt">standard</str>
> > >       <str name="fq"/>
> > >     </lst>
> > >   </lst>
> > >   <result name="response" numFound='1" start="0"
> > > maxScore="0.035959315">
> > >     <doc>
> > >       <float
> > > name="score">0.035959315</float>
> > >       <arr name="DOC_TEXT"><str>
> > > ... </str></arr>
> > >     <doc>
> > >   </result>
> > >   <lst name="highlighting">
> > >     <lst name="123456"/>
> > >   </lst>
> > >   <lst name="debug">
> > >     <str name="rawquerystring">DOC_TEXT:"3
> > > 1 15"</str>
> > >     <str name="querystring">DOC_TEXT:"3 1
> > > 15"</str>
> > >     <str
> > > name="parsedquery">PhraseQuery(DOC_TEXT:"3 1
> > > 15)"</str>
> > >     <str
> > > name="parsedquery_toString">DOC_TEXT:"3 1
> > > 15"</str>
> > >     <lst name="explain">
> > >       <str name="123456">
> > >         0.035959315 =
> > > fieldWeight(DOC_TEXT:"3 1 15" in 0), product of: 1.0 =
> > > tf(phraseFreq=1.0)
> > >         0.92055845 = idf(DOC_TEXT: 3=1
> > > 1=1 15=1)
> > >         0.0390625 =
> > > fieldNorm(field=DOC_TEXT, doc=0)
> > >     </str>
> > >   </lst>
> > >   <str name="QParser">LuceneQParser</str>
> > >   <arr name="filter_queries">
> > >     <str/>
> > >   </arr>
> > >   <arr name="parsed_filter_queries"/>
> > >   <lst name="timing">
> > >     ...
> > >   </lst>
> > > </response>
> >
> >
> > Nothing looks suspicious.
> >
> > Can you provide two things more;
> > fieldType of DOC_TEXT
> > and
> > field definition of DOC_TEXT.
> >
> > Also do you get snippet from the same doc, when you remove quotes from
> > your query?
> >
>
>
>

Reply via email to