As Timothy mentioned, Solr has the PostFIlter mechanism, but it's not
really suited for ranking/sorting changes. To effect the ranking you'd need
to work with the TopScoreDocCollector which Solr does not give you access
to. If you're doing distributed search you'd need to account for the
ranking algorithm at the aggregation step as well.

There is a pluggable collectors jira that builds under Solr 4.1 (SOLR-4465)
but it is a proof of concept at this time. You may want to chime in on this
ticket if you find it useful.


On Tue, Apr 23, 2013 at 1:21 PM, Timothy Potter <thelabd...@gmail.com>wrote:

> Take a look at Solr's DelegatingCollector - this article might be of
> interest too:
> http://hokiesuns.blogspot.com/2012/11/using-solrs-postfiltering-to-collect.html
>
> On Tue, Apr 23, 2013 at 10:32 AM, parnab kumar <parnab.2...@gmail.com>
> wrote:
> > Hi  ,
> >
> >         Timothy,Thanks for pointing out . But i have a specific
> requirement
> > . For any query it passes through the search handler and solr finally
> > directs it to lucene Index Searcher. As results are matched and collected
> > as TopDocs in lucene i want to inspect the top K Docs , reorder them by
> > some logic and pass the final TopDocs to solr which solr may send as a
> > response .
> >
> > I need to know the point where actually these interaction between solr
> and
> > lucene takes place .
> > Can anyone please help where to look into for this purpose .
> >
> > Thanks..
> > Pom
> >
> > On Tue, Apr 23, 2013 at 9:25 PM, Timothy Potter <thelabd...@gmail.com
> >wrote:
> >
> >>    org.apache.solr.search.SolrIndexSearcher
> >>
> >> On Tue, Apr 23, 2013 at 9:51 AM, parnab kumar <parnab.2...@gmail.com>
> >> wrote:
> >> > Hi ,
> >> >
> >> >             Can anyone please point out from where a solr search
> >> originates
> >> > and how it passes to the lucene index searcher and back to solr . I
> >> > actually what to know which class in solr directly calls the lucene
> Index
> >> > Searcher .
> >> >
> >> > Thanks.
> >> > Pom
> >>
>



-- 
Joel Bernstein
Professional Services LucidWorks

Reply via email to