小编vuk*_*uky的帖子

使用ZooKeeper在SolrCloud中配置DataImportHandler

我有一个像这样配置的SolrCloud:探索SolrCloud,区别在于我使用的是Solr 4.0.0 Beta.配置不久:

  • 默认端口上的ZooKeeper 2181
  • Solr在不同端口上运行的3个实例

这仅用于测试目的.所需的配置是3个ZooKeeper实例(每个Solr实例一个).我设法用curl命令索引一些XML文件.

问题:

  1. 如何配置DIH /集合?我设法更改solrconfig.xml(config for dataimport-handler),在lib中添加适当的数据库连接驱动程序,但在solr admin中我得到"抱歉,没有定义dataimport-handler!" 可以在zookeeper中查看更改(我看到data_config.xml),在solr管理面板中,我可以看到solrconfig.xml的更新版本.

  2. 在Ubuntu 12.04 LTS的单台或多台机器上进行solrcloud生产部署(与之前提到的所需配置一样的somthink)的任何好教程?

任何意见,将不胜感激!提前致谢!

lucene solr solrcloud apache-zookeeper

8
推荐指数
1
解决办法
5322
查看次数

在solr dih中,在一个位置导入两个double

我现在拥有的是两个双重的filds:

<field name="x_geo_x_coordinate" type="double" indexed="true" stored="true" default="0"/> 
<field name="x_geo_y_coordinate" type="double" indexed="true" stored="true" default="0"/>
Run Code Online (Sandbox Code Playgroud)

和我想要的:一个位置字段中的2个双精度值:

<field name="x_geo" type="location" indexed="true" stored="true" default="0.0,0.0"/>
Run Code Online (Sandbox Code Playgroud)

到目前为止我尝试了什么并且不起作用:

<copyField source="*_coordinate" dest="x_geo"/>
<copyField source="x_geo_str" dest="x_geo"/>
Run Code Online (Sandbox Code Playgroud)

有什么简单的解决 提前致谢!

solr geolocation geohashing dih

6
推荐指数
1
解决办法
4047
查看次数

使用多值位置字段在solr中搜索

我可以为solr中的位置类型字段索引多个值.修改schema.xml和索引修改的exampledocs 的响应看起来像查询:

  http://192.168.3.19:8983/solr/select?wt=json&indent=true&q=*:*
Run Code Online (Sandbox Code Playgroud)

响应:

{
    "id":"TWINX2048-3200PRO",
    "name":"CORSAIR  XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail",
    "manu":"Corsair Microsystems Inc.",
    "price":185.0,
    "popularity":5,
    "inStock":true,
    "manufacturedate_dt":"2006-02-13T15:26:37Z",
    "payloads":"electronics|6.0 memory|3.0",
    "cat":["electronics","memory"],
    "store":["37.7752,-122.4232","37.7752,-122.4232","38.7752,-122.4232","39.7752,-122.4232"],
    "features":[
      "CAS latency 2,\t2-3-3-6 timing, 2.75v, unbuffered, heat-spreader"]},
  {
    "id":"VS1GB400C3",
    "name":"CORSAIR ValueSelect 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - Retail",
    "manu":"Corsair Microsystems Inc.",
    "price":74.99,
    "popularity":7,
    "inStock":true,
    "manufacturedate_dt":"2006-02-13T15:26:37Z",
    "payloads":"electronics|4.0 memory|2.0",
    "cat":["electronics","memory"],
    "store":["37.7752,-100.0232","37.7752,-122.4232","38.7752,-122.4232","39.7752,-122.4232"]},
  {
    "id":"VDBDB1A16",
    "name":"A-DATA V-Series …
Run Code Online (Sandbox Code Playgroud)

lucene solr geolocation

4
推荐指数
1
解决办法
1856
查看次数