简体   繁体   English

是否有从.NET搜索Amazon CloudSearch的库?

[英]Are there libraries to search Amazon CloudSearch from .NET?

What libraries are out there to perform searches in AWS' CloudSearch domains? 有哪些库可以在AWS的CloudSearch域中执行搜索? The AWS SDK is virtually devoid of search capabilities. AWS SDK几乎没有搜索功能。


I would like to use Amazon CloudSearch for a project to search in pre-existing databases for certain customer-related data for billing purposes. 我想将Amazon CloudSearch用于项目,以便在预先存在的数据库中搜索某些与客户相关的数据,以便进行计费。

We already have extensive experience with Solr-based search services, but in this particular instance we do not want to host the search service in-house and already have experience with AWS. 我们已经拥有基于Solr的搜索服务的丰富经验,但在这个特定的实例中,我们不希望在内部托管搜索服务,并且已经拥有AWS的经验。

The Amazon SDK provides a decent .NET-based approach to administer search domains. Amazon SDK提供了一种不错的基于.NET的方法来管理搜索域。 But: Apparrently it lacks any capability whatsoever to actually search for things. 但是:显然它缺乏任何实际搜索内容的能力。

I have found a few attempts to provide a search API, but nothing that works OOTB. 我发现了一些提供搜索API的尝试 ,但没有任何可行的OOTB。 Any suggestions or experience with CloudSearch from within .NET? 在.NET中对CloudSearch的任何建议或经验?

(Yes, I know it is easy to just chug parameters in a web service call and deal with the JSON reply; a wrapper / library just would deal better with the messy details of parsing etc.) (是的,我知道在Web服务调用中调整参数并处理JSON回复很容易;包装器/库只会更好地处理解析的混乱细节等)

I wrote a library in C# on github, you can use. 我在github上用C#编写了一个库,你可以使用。 https://github.com/martin-magakian/Amazing-Cloud-Search https://github.com/martin-magakian/Amazing-Cloud-Search

It's "just" a wrapper, but part of the challenge was to match the JSON to the object you are working with (generic). 它只是一个包装器,但挑战的一部分是将JSON与您正在使用的对象(通用)相匹配。 Because Amazon cloud search is always working with array of string or array of uint but I still wanted my library to match the object properties whever it is an array or not. 因为亚马逊云搜索始终使用字符串数组或uint数组,但我仍然希望我的库匹配对象属性,无论它是否为数组。

It wasn't as easy as expected I share my work so more of us can play with Amazon Cloud Search. 这并不像预期的那么容易,我分享我的工作,所以我们更多的人可以玩亚马逊云搜索。

Martin Magakian 马丁马加基安

据推测,AWS .NET SDK现在支持CloudSearch: http//aws.amazon.com/releasenotes/1600390926978863

就像@ martin-magakian的针对v1 的Amazing-Cloud-Search库 (顺便说一句,它工作得很好),你可以使用Comb包装器来实现v2: https//github.com/BarryDahlberg/Comb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM