Try adding &debug=all and you'll see exactly how docs
are scored. Also, it'll show you exactly how your query is
parsed. Paste that if it's confused, it'll help figure out
what's going wrong.


On Tue, Dec 3, 2013 at 1:37 PM, Andreas Owen <a...@conx.ch> wrote:

> So isn't it sorted automaticly by relevance (boost value)? If not do should
> i set it in solrconfig?
>
> -----Original Message-----
> From: Jonathan Rochkind [mailto:rochk...@jhu.edu]
> Sent: Dienstag, 3. Dezember 2013 19:07
> To: solr-user@lucene.apache.org
> Subject: Re: json update moves doc to end
>
> What order, the order if you supply no explicit sort at all?
>
> Solr does not make any guarantees about what order documents will come back
> in if you do not ask for a sort.
>
> In general in Solr/lucene, the only way to update a document is to re-add
> it
> as a new document, so that's probably what's going on behind the scenes,
> and
> it probably effects the 'default' sort order -- which Solr makes no
> agreement about anyway, you probably shouldn't even count on it being
> consistent at all.
>
> If you want a consistent sort order, maybe add a field with a timestamp,
> and
> ask for results sorted by the timestamp field? And then make sure not to
> change the timestamp when you do an update that you don't want to change
> the
> order?
>
> Apologies if I've misunderstood the situation.
>
> On 12/3/13 1:00 PM, Andreas Owen wrote:
> > When I search for "agenda" I get a lot of hits. Now if I update the 2.
> > Result by json-update the doc is moved to the end of the index when I
> > search for it again. The field I change is "editorschoice" and it
> > never contains the search term "agenda" so I don't see why it changes
> > the order. Why does it?
> >
> >
> >
> > Part of Solrconfig requesthandler I use:
> >
> > <requestHandler name="/select2" class="solr.SearchHandler">
> >
> >       <lst name="defaults">
> >
> >                  <str name="echoParams">explicit</str>
> >
> >                  <int name="rows">10</int>
> >
> >                   <str name="defType">synonym_edismax</str>
> >
> >                     <str name="synonyms">true</str>
> >
> >                     <str name="qf">plain_text^10 editorschoice^200
> >
> >                                 title^20 h_*^14
> >
> >                                 tags^10 thema^15 inhaltstyp^6
> > breadcrumb^6
> > doctype^10
> >
> >                                 contentmanager^5 links^5
> >
> >                                 last_modified^5              url^5
> >
> >                     </str>
> >
> >                     <str name="bq">(expiration:[NOW TO *] OR (*:*
> > -expiration:*))^6</str>  <!-- tested: now or newer or empty gets small
> > boost
> > -->
> >
> >                     <str name="bf">log(clicks)^8</str> <!-- tested -->
> >
> >                     <!-- todo: anzahl-links(count urlparse in links
> > query) / häufigkeit von suchbegriff (bf= count in title and text)-->
> >
> >                   <str name="df">text</str>
> >
> >                     <str name="fl">*,path,score</str>
> >
> >                     <str name="wt">json</str>
> >
> >                     <str name="q.op">AND</str>
> >
> >
> >
> >                     <!-- Highlighting defaults -->
> >
> >                  <str name="hl">on</str>
> >
> >                   <str name="hl.fl">plain_text,title</str>
> >
> >                     <str name="hl.simple.pre">&lt;b&gt;</str>
> >
> >                  <str name="hl.simple.post">&lt;/b&gt;</str>
> >
> >
> >
> >                   <!-- <lst name="invariants"> -->
> >
> >                      <str name="facet">on</str>
> >
> >                                 <str name="facet.mincount">1</str>
> >
> >                                  <str
> > name="facet.field">{!ex=inhaltstyp}inhaltstyp</str>
> >
> >                                 <str
> > name="f.inhaltstyp.facet.sort">index</str>
> >
> >                                 <str
> > name="facet.field">{!ex=doctype}doctype</str>
> >
> >                                 <str
> > name="f.doctype.facet.sort">index</str>
> >
> >                                 <str
> > name="facet.field">{!ex=thema_f}thema_f</str>
> >
> >                                 <str
> > name="f.thema_f.facet.sort">index</str>
> >
> >                                 <str
> > name="facet.field">{!ex=author_s}author_s</str>
> >
> >                                 <str
> > name="f.author_s.facet.sort">index</str>
> >
> >                                 <str
> > name="facet.field">{!ex=sachverstaendiger_s}sachverstaendiger_s</str>
> >
> >                                 <str
> > name="f.sachverstaendiger_s.facet.sort">index</str>
> >
> >                                 <str
> > name="facet.field">{!ex=veranstaltung}veranstaltung</str>
> >
> >                                 <str
> > name="f.veranstaltung.facet.sort">index</str>
> >
> >                                 <str
> > name="facet.date">{!ex=last_modified}last_modified</str>
> >
> >                                                 <str
> > name="facet.date.gap">+1MONTH</str>
> >
> >                                                 <str
> > name="facet.date.end">NOW/MONTH+1MONTH</str>
> >
> >                                                 <str
> > name="facet.date.start">NOW/MONTH-36MONTHS</str>
> >
> >                                                 <str
> > name="facet.date.other">after</str>
> >
> >         </lst>
> >
> > </requestHandler>
> >
> >
>
>

Reply via email to