Hi Ritesh,

you could add another field that contains the size of the list in the
AREFS field. This way you'd simply sort by that field in descending
order.

Should you update AREFS dynamically, you'd have to update the field with
the size, as well, of course.

Chantal

On Thu, 2012-02-23 at 11:27 +0100, rks_lucene wrote:
> Hi,
> 
> I have a journal article citation schema like this:
> {  AT - article_title
>    AID - article_id (Unique id)
>    AREFS - article_references_list (List of article id's referred/cited in
> this article. Multi-valued)
>    AA - Article Abstract
>    ---
>    other_article_stuff
>    ...
> }
> 
> So for example, in order to search for all those articles that refer(cite)
> article id 51643, I simply need to search for AREFS:51643 and it will give
> me the list of articles that have 51643 listed in AREFS.
> 
> Now, I want to be able to search in the text of articles and sort the
> results by "most referred" articles. How can I do this ?
> 
> Say if my search query is q=AT:metal and it gives me 1700 results. How can I
> sort 1700 results by those that have received maximum number of citations by
> others.
> 
> I have been researching function queries to solve this but have been unable
> to do so.
> 
> Thanks in advance.
> Ritesh
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Can-this-type-of-sorting-boosting-be-done-by-solr-tp3769315p3769315.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to