Have you looked at external fields?

 
http://lucidworks.lucidimagination.com/display/solr/Solr+Field+Types#SolrFieldTypes-WorkingwithExternalFiles

you will need a process to do the counts and note the limitation of
updates only after a commit, but i think it would fit your usecase.



On 23 February 2012 12:04, rks_lucene <ppro.i...@gmail.com> wrote:
> Dear Chantal,
>
> Thanks for your reply, but thats not what I was asking.
>
> Let me explain. The size of the list in AREFS would give me how many records
> are *referred by* an article and NOT how many records *refer to* an article.
>
> Say if an article id - 51463 has been published in 2002 and refers to 10
> articles dating from 1990-2002. Then the count of AREFS would be 10 which is
> static once the journal has been published.
>
> However if the same article is being *referred to* by 20 articles published
> from 2003-2012 then I am talking about this 20 count. This count is dynamic
> and as we keep adding records to the index, there are more articles that
> will refer to article 51463 it in their AREFS field in the future.
> /(Obviously when we are adding article 51463 to the index we have no clue
> who will be referring to it in the future, so we can have another field in
> it for this, nor can be update 51463 everytime someone refers to it)/
>
> So today, if I want to know who all are referring to 51463, by actually
> searching for this id in the AREFS field. The query is as simple as
> q=AREFS:51463 and it will given the list of articles from 2003 to 2012 and
> the result count would be 20.
>
> So back to the question, 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
> (till date) by others. (i.e., that have maximum number of results if I
> individually search their ids in the AREFS field).
>
> Hope this makes it clear. I feel this is a sort/boost by function query
> candidate. But I am not able to figure it out.
>
> Thanks
> Ritesh
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Can-this-type-of-sorting-boosting-be-done-by-solr-tp3769315p3769475.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to