使用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
2023-12-05 12:12

满意答案

对于你想要执行聚合的字段,我会推荐关键字分析器或根本不分析字段。 从关键字分析器文档:

类型关键字分析器,将整个流“标记化”为单个标记。 这对于邮政编码,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.

相关问答

更多

Elasticsearch计算忽略空格的术语(Elasticsearch count terms ignoring spaces)

对于你想要执行聚合的字段,我会推荐关键字分析器或根本不分析字段。 从关键字分析器文档: 类型关键字分析器,将整个流“标记化”为单个标记。 这对于邮政编码,ID等数据非常有用。 请注意,使用映射定义时,将字段标记为not_analyzed可能更有意义。 但是,如果您仍想对该字段执行分析以包含其他搜索,请考虑使用ES 1.x的字段设置。如字段/多字段文档中所述 。 这将允许您获得搜索字段的值和聚合字段的值。 For fields that you want to perform aggregation...

ElasticSearch术语在整个字段上进行聚合(ElasticSearch terms aggregation on whole field)

您可以更新filters.brand的映射 { "mapping": { "brand": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } } 并更新聚合查询以包含"field": "filters.brand.keyword" 。 不...

ElasticSearch terms_stats查询 - 从结果中排除术语(ElasticSearch terms_stats query - exclude terms from result)

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.

ElasticSearch Facets术语查询浮点精度(ElasticSearch Facets Terms Query float precision)

我找到了解决方案,我将数据类型从float更改为long,并且一切正常! I've found the solution, I changed the datatype from float to long and everything works!

字数 - 忽略/减去双空格(Word count - ignoring/subtracting double spaces)

因为你获得下一个字符的方法是通过lab3.get(character) ,增加你的字数检查中的字符不会得到下一个字符,只能改变你拥有的字符的值。 与其试图“向前看”,不如考虑保留最后一个字符的读取并对它进行检查,以便在接下来的迭代中检测单词的结尾。 if (ispunct(character)) { countpunc++; if (isaalpha(prevchar)) { words++; } } if (isspace(character)) { countspace++; if (isaa...

Elasticsearch重要术语聚合:doc_count和bg_count的含义(Elasticsearch significant terms aggregation: meaning of doc_count and bg_count)

非常简单: 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

Elasticsearch慢速聚合(Elasticsearch Slow terms aggregation)

从我从你的问题中了解到的情况来看,我认为这是你需要的: { "query": { ... }, "aggs": { "index": { "terms": { "field": "index", "execution_hint": "map" } } } } 试试这个,让我知道。 execution_h...

ElasticSearch - 由空格分割的术语聚合(ElasticSearch - terms aggregation split by whitespace)

我推断您的映射类型是keyword因为您聚合在名为"attributes.Title.keyword"的字段上。 keyword映射不会对字符串进行标记,因此在聚合时,它会将整个字符串视为唯一键。 您想要更新映射以type: "text"作为标题字段。 我不会把它title.keyword而是像title.analyzed一样 - 如果你没有指定分析器,Elasticsearch将应用标准分析器 ,这应该足以让你入门。 如果你只想要用空格分解你的标题(而不是词干和其他东西),你也可以使用空格分析器...

范围0计算ElasticSearch中聚合中的术语(Scope 0 count terms in aggregation in 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)

这应该工作! { "size": 0, "query": { "wildcard": { "tokens.keyword": "$*" } }, "_source": { "excludes": [] }, "aggs": { "2": { "terms": { "field": "tokens.keyword", "size": 50, "order": {...

相关文章

更多

微信将推指纹支付 "指付通"会与Touch ID整合吗

  有消息称微信下一版本将推指纹支付“指付通”,解决手机丢失资金安全的问题(这个应该是针对阿里手机支付 ...

MongoDB _id和ObjectId详解

在创建一个文档的时候,会生成一个_id,id的默认类型是ObjectId,如: > db. ...

solr required field: id

为了和以前的程序兼容,在solr建立索引的时候,将id设为gid,结果在建立索引时候出现如下错误: o ...

js 通过td的id值 如何拿到tr的id值?

有以下代码:<tr id="bb"><td id="a ...

html中一个div的id是“1:222”的话,怎么利用id给它定义css啊?

如 <style> #1:2{ height:100px; width:100px ...

mysql in根据查询id排序

mysql in根据查询时,返回结果是自行排序的​,如果要按照我们查询的ID进行排序,要用到order ...

配置solr自动生成id

schema.xml ======================================== ...

别拿Hadoop map key当id使

在写mapreduce时,发现一个问题: Hadoop的map函数的key一般是输入文件的行号,于是乎 ...

使用TabPanel时,如果两个页面存在相同的id。

我左边是一颗tree,右边是TabPanel。当点击一个结点 A,autoload一个页面 A.jsp ...

solr4.0 id 自动生成

一、配置schema.xml文件 1、添加fieldType <types> & ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本