lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <no-re...@comments.apache.org>
Subject Thomas Wood commented on https://lucene.apache.org/solr/guide/6_6/learning-to-rank.html
Date Tue, 21 Nov 2017 14:20:10 GMT
Hello,
    Thomas Wood has commented on https://lucene.apache.org/solr/guide/6_6/learning-to-rank.html.

    You can find the comment here:
    https://lucene.apache.org/solr/guide/6_6/learning-to-rank.html#comment_7156
    Please note that if the comment contains a hyperlink, it must be approved
    before it is shown on the site.

    Below is the reply that was posted:
    ~~~~
    This example is very helpful. I can run it fine for a model based on document recency.

I am trying to train an LTR model to use geodist() as one of my features, but I'm not sure
what format the features file should take.

Trying this:

  {
    "name" : "documentDistance",
    "class" : "org.apache.solr.ltr.feature.SolrFeature",
    "params" : {
      "q" : "{!func}recip(geodist(), 200, 2, 2)"
    }
  },

however I get error

"msg": "Exception from createWeight for SolrFeature [name=documentDistance, params={q={!func}recip(geodist(),
200, 2, 2)}] Failed to parse feature query.",

I have also tried geodist(${lat}, ${long}) and passing two EFI parameters through in the training
URL, however I get the same error.

Also tried putting this in my URL:

fl=distance:geodist()

however not sure how to access the variable distance from the features file.
    ~~~~

    With regards,
    Apache Solr Reference Guide.

    You are receiving this email because you have subscribed to changes for the solr-refguide
site.
    To stop receiving these emails, unsubscribe from the mailing list that is providing these
notifications.
	    

Mime
View raw message