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=json&fl=id%20score&q={!boost%20b=field(popularity)}ipod > > > Best, > Erick > > > On Thu, Nov 21, 2013 at 10:43 PM, sling <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4102599&i=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 9999999. > > > > 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_code&node=4102531&code=c2xpbmczNThAZ21haWwuY29tfDQxMDI1MzF8NzMyOTA2Njg2> > . > NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=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.