Solr语言 - 返回空结果的地理空间搜索



我目前正在尝试让一个简单的地理空间示例工作。它是一个全新的数据库,按照此链接中显示的步骤加载数据。我已经检查了各种线程,但我不明白我目前缺少什么。下面可以看到http://localhost:8983/solr/test/select?q=*的示例条目。

2   
    id  "6H500F0"
    name    
        0   "Maxtor DiamondMax 11 - hard drive - 500 GB - SATA-300"
    manu    
        0   "Maxtor Corp."
    manu_id_s   "maxtor"
    cat 
        0   "electronics"
        1   "hard drive"
    features    
        0   "SATA 3.0Gb/s, NCQ"
        1   "8.5ms seek"
        2   "16MB cache"
    price   
        0   350
    popularity  
        0   6
    inStock 
        0   true
    store   
        0   "45.17614,-93.87341"
    manufacturedate_dt  "2006-02-13T15:26:37Z"
    _version_   1630485042534809600

必要的managed_schema份

<fieldType name="location" class="solr.LatLonPointSpatialField" docValues="true"/>
<field name="store" type="location"/>

从这里我尝试使用查询

http://localhost:8983/solr/test/select?&q=*:*&fq={!geofilt%20sfield=store}&pt=45.17614,-93.87341&d=9999999

这将导致空查询。任何帮助将不胜感激。

更改字段类型后,通常必须对文档重新编制索引,以便更改内部数据结构(并支持特殊类型的查询(。

例外情况是,如果仅更改分析链的query部分。

最新更新