使用Apple ID登录(Login with Apple ID)
我想整合“ 登录Apple ID ”(与Facebook或Twitter登录)。 那么有没有给我Apple ID的Api。 或者是否有可能? 。 谢谢。
I want to integrate "Login with Apple Id" same as (Login with Facebook or Twitter). so is there any Api that gives me Apple ID. or is it possible or not? . Thank You.
原文:https://stackoverflow.com/questions/12740011
最满意答案
对于你想要执行聚合的字段,我会推荐关键字分析器或根本不分析字段。 从关键字分析器文档:
类型关键字分析器,将整个流“标记化”为单个标记。 这对于邮政编码,ID等数据非常有用。 请注意,使用映射定义时,将字段标记为not_analyzed可能更有意义。
但是,如果您仍想对该字段执行分析以包含其他搜索,请考虑使用ES 1.x的字段设置。如字段/多字段文档中所述 。 这将允许您获得搜索字段的值和聚合字段的值。
For fields that you want to perform aggregations on I would recommend either the keyword analyzer or do not analyze the field at all. From the keyword analyzer documentation:
An analyzer of type keyword that "tokenizes" an entire stream as a single token. This is useful for data like zip codes, ids and so on. Note, when using mapping definitions, it might make more sense to simply mark the field as not_analyzed.
However if you want to still perform analysis on the field to include for other searches, then consider using the field setting of ES 1.x As described in the field/multi_field documentation. This will allow you to have a value of the field for searching and one for aggregations.
相关问答
更多-
对于你想要执行聚合的字段,我会推荐关键字分析器或根本不分析字段。 从关键字分析器文档: 类型关键字分析器,将整个流“标记化”为单个标记。 这对于邮政编码,ID等数据非常有用。 请注意,使用映射定义时,将字段标记为not_analyzed可能更有意义。 但是,如果您仍想对该字段执行分析以包含其他搜索,请考虑使用ES 1.x的字段设置。如字段/多字段文档中所述 。 这将允许您获得搜索字段的值和聚合字段的值。 For fields that you want to perform aggregations on ...
-
您可以更新filters.brand的映射 { "mapping": { "brand": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } } 并更新聚合查询以包含"field": "filters.brand.keyword" 。 不建议使用f ...
-
ElasticSearch terms_stats查询 - 从结果中排除术语(ElasticSearch terms_stats query - exclude terms from result)[2023-04-30]
terms_stats facet目前不支持排除。 我建议在github上创建一个问题,要求添加它。 terms_stats facet doesn't support exclude at the moment. I would suggest creating an issue on github asking for it to be added. -
我找到了解决方案,我将数据类型从float更改为long,并且一切正常! I've found the solution, I changed the datatype from float to long and everything works!
-
因为你获得下一个字符的方法是通过lab3.get(character) ,增加你的字数检查中的字符不会得到下一个字符,只能改变你拥有的字符的值。 与其试图“向前看”,不如考虑保留最后一个字符的读取并对它进行检查,以便在接下来的迭代中检测单词的结尾。 if (ispunct(character)) { countpunc++; if (isaalpha(prevchar)) { words++; } } if (isspace(character)) { countspace++; if (isaalpha( ...
-
非常简单: doc_count是具有给定词汇的结果集中的文档数量 bg_count是指定期限内整个指数中的文件数量 Very simply: doc_count is the number of documents in the result set with the given term bg_count is the number of documents in the whole index with the given term
-
从我从你的问题中了解到的情况来看,我认为这是你需要的: { "query": { ... }, "aggs": { "index": { "terms": { "field": "index", "execution_hint": "map" } } } } 试试这个,让我知道。 execution_hint和讨 ...
-
我推断您的映射类型是keyword因为您聚合在名为"attributes.Title.keyword"的字段上。 keyword映射不会对字符串进行标记,因此在聚合时,它会将整个字符串视为唯一键。 您想要更新映射以type: "text"作为标题字段。 我不会把它title.keyword而是像title.analyzed一样 - 如果你没有指定分析器,Elasticsearch将应用标准分析器 ,这应该足以让你入门。 如果你只想要用空格分解你的标题(而不是词干和其他东西),你也可以使用空格分析器 。 您将 ...
-
您应该尝试通过递增文档计数对terms聚合(嵌入到filter聚合中)进行排序,并且您将首先获得所有具有0 doc count的术语。 请注意,默认情况下,您只能获得前10个术语,如果您的术语数少于0个训练计数,您将全部看到它们,否则您可能需要将size参数增加到高于10的值。 { "aggs": { "city_filter": { "filter": { "term": { "city": "mumbai" } }, ...
-
Elasticsearch查询仅聚合具有特定模式的术语(Elasticsearch query aggregation only terms with a specific pattern)[2023-11-18]
这应该工作! { "size": 0, "query": { "wildcard": { "tokens.keyword": "$*" } }, "_source": { "excludes": [] }, "aggs": { "2": { "terms": { "field": "tokens.keyword", "size": 50, "order": { ...