Re: a function query of time, frequency and score.

2013-11-26 Thread Erick Erickson
You can combine a whole series of mathematical
functions that take into account the values of fields
and use that for scoring. Functions can take other
functions as one of their operands, so you could
make something arbitrarily complex that takes into
account several of your fields.

If this still doesn't apply, please provide some examples
of what your docs look like and what you want to do with
them.

Best,
Erick






On Mon, Nov 25, 2013 at 11:45 PM, sling sling...@gmail.com wrote:

 Thanks, Erick.
 What I want to do is custom the sort by date, time, and number.
 I want to know is there some formula to tackle this.

 Thanks again!
 sling


 On Fri, Nov 22, 2013 at 9:11 PM, Erick Erickson [via Lucene] 
 ml-node+s472066n4102599...@n3.nabble.com wrote:

  Not quite sure what you're asking. The field() function query brings the
  value of a field into the score, something like:
 
 http://localhost:8983/solr/select?wt=jsonfl=id%20scoreq={!boost%20b=field(popularity)}ipod
 
 
  Best,
  Erick
 
 
  On Thu, Nov 21, 2013 at 10:43 PM, sling [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4102599i=0
  wrote:
 
   Hi, guys.
  
   I indexed 1000 documents, which have fields like title, ptime and
   frequency.
  
   The title is a text fild, the ptime is a date field, and the frequency
  is a
   int field.
   Frequency field is ups and downs. say sometimes its value is 0, and
   sometimes its value is 999.
  
   Now, in my app, the query could work with function query well. The
  function
   query is implemented as the score multiplied by an decreased
 date-weight
   array.
  
   However, I have got no idea to add the frequency to this formula...
  
   so could someone give me a clue?
  
   Thanks again!
  
   sling
  
  
  
   --
   View this message in context:
  
 
 http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531.html
   Sent from the Solr - User mailing list archive at Nabble.com.
  
 
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531p4102599.html
   To unsubscribe from a function query of time, frequency and score.,
 click
  here
 http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4102531code=c2xpbmczNThAZ21haWwuY29tfDQxMDI1MzF8NzMyOTA2Njg2
 
  .
  NAML
 http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
 




 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531p4103216.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: a function query of time, frequency and score.

2013-11-25 Thread sling
Thanks, Erick.
What I want to do is custom the sort by date, time, and number.
I want to know is there some formula to tackle this.

Thanks again!
sling


On Fri, Nov 22, 2013 at 9:11 PM, Erick Erickson [via Lucene] 
ml-node+s472066n4102599...@n3.nabble.com wrote:

 Not quite sure what you're asking. The field() function query brings the
 value of a field into the score, something like:
 http://localhost:8983/solr/select?wt=jsonfl=id%20scoreq={!boost%20b=field(popularity)}ipod


 Best,
 Erick


 On Thu, Nov 21, 2013 at 10:43 PM, sling [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4102599i=0
 wrote:

  Hi, guys.
 
  I indexed 1000 documents, which have fields like title, ptime and
  frequency.
 
  The title is a text fild, the ptime is a date field, and the frequency
 is a
  int field.
  Frequency field is ups and downs. say sometimes its value is 0, and
  sometimes its value is 999.
 
  Now, in my app, the query could work with function query well. The
 function
  query is implemented as the score multiplied by an decreased date-weight
  array.
 
  However, I have got no idea to add the frequency to this formula...
 
  so could someone give me a clue?
 
  Thanks again!
 
  sling
 
 
 
  --
  View this message in context:
 
 http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531.html
  Sent from the Solr - User mailing list archive at Nabble.com.
 


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531p4102599.html
  To unsubscribe from a function query of time, frequency and score., click
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4102531code=c2xpbmczNThAZ21haWwuY29tfDQxMDI1MzF8NzMyOTA2Njg2
 .
 NAMLhttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531p4103216.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: a function query of time, frequency and score.

2013-11-22 Thread Erick Erickson
Not quite sure what you're asking. The field() function query brings the
value of a field into the score, something like:
http://localhost:8983/solr/select?wt=jsonfl=id%20scoreq={!boost%20b=field(popularity)}ipod

Best,
Erick


On Thu, Nov 21, 2013 at 10:43 PM, sling sling...@gmail.com wrote:

 Hi, guys.

 I indexed 1000 documents, which have fields like title, ptime and
 frequency.

 The title is a text fild, the ptime is a date field, and the frequency is a
 int field.
 Frequency field is ups and downs. say sometimes its value is 0, and
 sometimes its value is 999.

 Now, in my app, the query could work with function query well. The function
 query is implemented as the score multiplied by an decreased date-weight
 array.

 However, I have got no idea to add the frequency to this formula...

 so could someone give me a clue?

 Thanks again!

 sling



 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531.html
 Sent from the Solr - User mailing list archive at Nabble.com.



a function query of time, frequency and score.

2013-11-21 Thread sling
Hi, guys.

I indexed 1000 documents, which have fields like title, ptime and frequency.

The title is a text fild, the ptime is a date field, and the frequency is a
int field.
Frequency field is ups and downs. say sometimes its value is 0, and
sometimes its value is 999.

Now, in my app, the query could work with function query well. The function
query is implemented as the score multiplied by an decreased date-weight
array. 

However, I have got no idea to add the frequency to this formula...

so could someone give me a clue?

Thanks again!

sling



--
View this message in context: 
http://lucene.472066.n3.nabble.com/a-function-query-of-time-frequency-and-score-tp4102531.html
Sent from the Solr - User mailing list archive at Nabble.com.