小编Zou*_*ias的帖子

40
推荐指数
3
解决办法
3万
查看次数

Spark Streaming中的窗口?

在火花流中,我们收到的DStream是一批RDD.那么窗口如何进一步帮助.

根据我的理解,它也批量RDD.

如果我错了,请纠正我(Spark Streaming新手).

apache-spark spark-streaming

6
推荐指数
2
解决办法
9688
查看次数

在Solr中使用“条款”与“ select?qt =条款”

我在使用Solr 4.2.0的“ / terms”请求处理程序中遇到困难。

使用网络浏览器,以下网址返回fieldName INDUSTRY的术语列表

http://localhost:8983/solr/collection1/terms?terms.fl=INDUSTRY&terms.prefix=P&terms=true
Run Code Online (Sandbox Code Playgroud)

另一方面,以下查询不返回任何条件:

http://localhost:8983/solr/collection1/select?qt=terms&terms.fl=INDUSTRY&terms.prefix=P&terms=true
Run Code Online (Sandbox Code Playgroud)

我的问题是如何通过“ / select” requestHandler使用“ / terms” requestHandler?

Solr的日志如下(如果对您有帮助)

Apr 12, 2013 10:21:55 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/terms params={terms.fl=INDUSTRY&terms=true&terms.prefix=P} status=0 QTime=5 
Apr 12, 2013 10:22:09 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={terms.fl=INDUSTRY&terms=true&qt=terms&terms.prefix=P} hits=0 status=0 QTime=0 
Run Code Online (Sandbox Code Playgroud)

solr

5
推荐指数
1
解决办法
3725
查看次数

Elasticsearch 中的 BM25 相似度

我想将 Elasticsearch 的默认相似度更改为 BM25。

根据

http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/index-modules-similarity.html

我只需将以下行添加到 elasticsearch.yml 文件中

index.similarity.default.type: BM25

但是,BM25 有两个输入参数k1b我也想设置它们。

有谁知道如何设置这些参数?

elasticsearch

5
推荐指数
1
解决办法
4705
查看次数

Python打包:Boost库作为依赖

假设有人想要打包一个依赖于 C++ boost 库的 Python (Cython) 库。

配置的最佳方法是什么setup.py,以便正确地通知用户需要安装 boost 库(即apt-get install libboost-dev在 Ubuntu 等其他操作系统中)?或者将 boost 库包含在 python 包分发中是更好的做法吗?

python boost cython pypi python-packaging

5
推荐指数
1
解决办法
2267
查看次数