amazon-cloudsearch

How To search special symbols AWS Search

爱⌒轻易说出口 提交于 2021-02-10 13:23:16
问题 I'm trying to be able to get search results with special symbols like @. Every time I try to do this I don't get any hits and when I try without the special symbols everything works fine. Here is the request I'm making. search?q=(or(prefix+field%3Demail+%27email@email%27)(term+field%3Demail+%27email@email%27))&q.parser=structured&return=user 回答1: The symbols are being removed during text processing as described in Text Processing According to the word break rules, strings separated by

How To search special symbols AWS Search

我是研究僧i 提交于 2021-02-10 13:22:09
问题 I'm trying to be able to get search results with special symbols like @. Every time I try to do this I don't get any hits and when I try without the special symbols everything works fine. Here is the request I'm making. search?q=(or(prefix+field%3Demail+%27email@email%27)(term+field%3Demail+%27email@email%27))&q.parser=structured&return=user 回答1: The symbols are being removed during text processing as described in Text Processing According to the word break rules, strings separated by

Automatically offload dynamo table to cloud search domain

痞子三分冷 提交于 2020-01-10 19:54:14
问题 I'm using Dynamo DB pretty heavily for a service I'm building. A new client request has come in that requires cloud search. I see that a cloud search domain can be created from a dynamo table via the AWS console. My question is this: Is there a way to automatically offload data from a dynamo table into a cloud search domain via the API or otherwise at a specified time interval? I'd prefer this to manually offloading dynamo documents to cloudsearch. All help greatly appreciated! 回答1: Here are

AWS Cloud search: Grouping search results by field value and returning only most popular of each

这一生的挚爱 提交于 2020-01-06 08:43:51
问题 I am using aws cloud search to search a group of docs. I want to group the results by a field value, say 'color', and return only one (most relevant) of each. So if i have doc1 : { color: 'green', number: 3, relevance: 'high' }, doc2 : { color: 'red', number: 3, relevance: 'medium' }, doc3 : { color: 'green', number: 3, relevance: 'medium } And searching for 'number: 3, I only want doc1 and doc2, the most popular ones in their respective 'color' groups. Is this possible? 来源: https:/

Keeping AWS CloudSearchDomain in sync with DynamoDB

北城以北 提交于 2020-01-05 08:18:17
问题 Im trying to add some flexible search functionality to my dynamoDB, so I set up the AWS CloudSearchDomain service. Which I believed could add a wrapper around my dynamoDB and retrieve documents with flexible search options. Since implementing I realised that adding an item to my dynamoDB does not automatically add the item to the searchable CloudSearchDomain documents. The AWS docs advise to sync the DB items with the CloudSearchDomain periodically, such as at the end of each day. But I want

Implementing “Did you mean?” using Amazon CloudSearch

允我心安 提交于 2020-01-03 17:10:13
问题 The new CloudSearch API uses Solr in the backend and Solr has the "Did You Mean?" feature. However, it seems that Amazon has not yet exposed this feature, at least looking at the documentation. I have looked at other questions asking about implementing a "Did you mean?" feature, however if I am not mistaken, in all these cases the asker has control over the search engine. I was thinking to perhaps send a second search query using fuzzy search if the first search query results in no matches.

How can one make authenticated requests with AWS Cognito from mobile to AWS services (i.e. CloudSearch)?

浪子不回头ぞ 提交于 2019-12-30 05:16:08
问题 I've read a bunch of AWS documentation in the last day or two, but haven't yet come across anything that really answers the follow: If a mobile app is using AWS Cognito as the Authentication / Identity provider, I know that we can write AWS IAM policies that specify what AWS resources and actions a user can take. There are a brief few examples of policies that allow users to upload files to S3 directly, but only into "folders" named with their user identity. There is plenty of mention of

How to fetch all the facets from cloudsearch

旧城冷巷雨未停 提交于 2019-12-24 14:40:21
问题 On cloudsearch we can fetch facet information by passing facets.FIELD parameter in query, but I want cloudsearch to return all the available (returnable) facets. Is there a way we can do it? I have many facets which have return enabled. 回答1: There is no way to retrieve facet information for all facets -- you must explicitly specify each facet you're interested in, eg to get the values for facets FOO and BAR, your query would specify: facet.FOO={}&facet.BAR={} Here are the faceting docs if you

CloudSearch performance with frequent updates of small batches

心已入冬 提交于 2019-12-24 13:05:06
问题 I have a use case where I need to upload small document batches (typical 1 to 10 documents of 1KB each) to CloudSearch. Every 2 or 3 seconds a new batch is uploaded. The CloudSearch docs for bulk uploads say: Make sure your batches are as close to the 5 MB limit as possible. Uploading a larger amount of smaller batches slows down the upload and indexing process. It's ok if there is a 30 seconds delay before the documents show up in search results. Will my implementation work well as my

How to use filterQuery and queryOptions on cloudsearch boto3

强颜欢笑 提交于 2019-12-24 08:29:27
问题 I am trying to use boto3 and cloudsearchdomain but I am having troubles establishing some optional filters over my query. This is what I did: response = client.search( query=query, filterQuery= {'city':city}, partial=True, queryOptions= {'fields':'full_address'}, queryParser='simple', size=size) Based on the documentation of boto3, the filterQuery parameter should be an string, but I have no idea of the structure it should have and I found nothing on the internet. queryOptions should be a