PageRank sort

2009-04-23 Thread Marcus Herou
Hi. I've posted before but here it goes again: I have BlogData data which is more or less 100% static but one field is not - the PageRank. I would like to sort on that field and on the Lucene list I got these answers. 1. Use two indexes and a ParallellReader 2. Use a FieldScoreQuery conta

Re: PageRank sort

2009-04-24 Thread Grant Ingersoll
On Apr 24, 2009, at 1:52 AM, Marcus Herou wrote: Hi. I've posted before but here it goes again: I have BlogData data which is more or less 100% static but one field is not - the PageRank. I would like to sort on that field and on the Lucene list I got these answers. 1. Use two ind

Re: PageRank sort

2009-04-24 Thread Marcus Herou
Hi. Comments inline. On Fri, Apr 24, 2009 at 1:00 PM, Grant Ingersoll wrote: > How often are you updating the rank? The goal is to optimize the pagerank calculating algorithm so can have continuous updates (1 blogs at a time 24/7) but more likely we'll end up refreshing the inde

Re: PageRank sort

2009-04-24 Thread Yonik Seeley
On Fri, Apr 24, 2009 at 1:39 PM, Marcus Herou wrote: > Great! That seems like something that could work. Depends on how that field > get's re-read/indexed I guess. http://lucene.apache.org/solr/api/org/apache/solr/schema/ExternalFileField.html It's a separate *text* file that just contains id/va

Re: PageRank sort

2009-04-24 Thread Marcus Herou
And I published the setup here: http://dev.tailsweep.com/solr-external-scoring/en/ /M On Sat, Apr 25, 2009 at 12:01 AM, Marcus Herou wrote: > Works like a charm! > > Thank you sir. > > //Marcus > > > On Fri, Apr 24, 2009 at 11:01 PM, Marcus Herou > wrote: > >> That is fantastic, I am creating a

Re: PageRank sort

2009-04-24 Thread Marcus Herou
Works like a charm! Thank you sir. //Marcus On Fri, Apr 24, 2009 at 11:01 PM, Marcus Herou wrote: > That is fantastic, I am creating a really small index right now trying to > figure out howto implement the FunctionQuery for this. > > //Marcus > > > On Fri, Apr 24, 2009 at 10:55 PM, Yonik Seele

Re: PageRank sort

2009-04-24 Thread Marcus Herou
That is fantastic, I am creating a really small index right now trying to figure out howto implement the FunctionQuery for this. //Marcus On Fri, Apr 24, 2009 at 10:55 PM, Yonik Seeley wrote: > On Fri, Apr 24, 2009 at 1:39 PM, Marcus Herou > wrote: > > Great! That seems like something that coul

Re: PageRank sort

2009-04-24 Thread Yonik Seeley
You probably want to mix the custom score with the normal relevancy score... to add, use a normal boolean query. To multiply, check out boosted query: http://lucene.apache.org/solr/api/org/apache/solr/search/BoostQParserPlugin.html For other options, use a more complex function query with the new

Re: PageRank sort

2009-04-24 Thread Marcus Herou
That seems wise... PageRank * Text-based Scoring. So you mean in my stupid case that: GET ' http://127.0.0.1:8110/solr/test/select?indent=on&start=0&rows=100&q={!boostb=blogRank v=$qq}&qq=*:*' would yield the same results as: GET "http://127.0.0.1:8110/solr/test/se

Re: PageRank sort

2009-04-24 Thread Marcus Herou
Cool! GET ' http://127.0.0.1:8110/solr/test/select?indent=on&start=0&rows=100&q={!boostb=blogRank v=$qq}&qq=title:solr&debugQuery=on' On Sat, Apr 25, 2009 at 12:43 AM, Marcus Herou wrote: > That seems wise... PageRank * Text-based Scoring. > > So you mean

Re: PageRank sort

2009-04-24 Thread Marcus Herou
elect?indent=on&start=0&rows=100&q={!boost<http://127.0.0.1:8110/solr/test/select?indent=on&start=0&rows=100&q=%7B%21boost>b=blogRank > v=$qq}&qq=title:solr&debugQuery=on' > > On Sat, Apr 25, 2009 at 12:43 AM, Marcus Herou > wrote: > >&g