这似乎是一个非常简单的问题,但我从其他解决方案和网站尝试的所有东西都不起作用。我有三个不想被索引或查询的字段--:p_s、:gender和:part_of_speech--但是elasticsearch仍然从这些字段返回值,即使我没有指定它们应该被索引或查询。大约在一半的时候,说对索引说no,但他们没有指出这将发生在哪里。
术语控制器:
def search
@terms = Term.search(params[:query]).page(params[:page])
end
型号:
require 'elasticsearch/model'
class T
计算和所需的所有字段都是INT,但当我提出请求时,得到了以下错误:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Expected numeric type on field [mlf16_txservnum], but got [string]"
}
我已经将我的Elasticsearch集群从1.1升级到了1.2,在索引一个有点大的字符串时出现了错误。
{
"error": "IllegalArgumentException[Document contains at least one immense term in field=\"response_body\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to