lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Thomas Wood commented on
Date Tue, 21 Nov 2017 14:20:10 GMT
    Thomas Wood has commented on

    You can find the comment here:
    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:


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
    To stop receiving these emails, unsubscribe from the mailing list that is providing these

View raw message