Shane Andrade created SOLR-3942:
-----------------------------------

             Summary: Cannot use geodist() function with edismax
                 Key: SOLR-3942
                 URL: https://issues.apache.org/jira/browse/SOLR-3942
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.0
         Environment: Windows Server 2008 R2, Windows 7
            Reporter: Shane Andrade
            Priority: Critical


Using the spatial example from the wiki when boosting with edismax:

http://localhost:8983/solr/select?defType=edismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&boost=recip(geodist(),2,200,20)&sort=score%20desc

Produces the following error:
<lst name="error">
<str name="msg">
org.apache.lucene.queryparser.classic.ParseException: Spatial field must 
implement 
MultiValueSource:store{type=geohash,properties=indexed,stored,omitTermFreqAndPositions}
</str>
<int name="code">400</int>
</lst>

When the defType is changed to dismax, the query works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to