search-engine

Can I use spannear in the nested field for different block in elasticsearch?

心不动则不痛 提交于 2021-02-11 13:01:44
问题 The document is like: doc = { "id": 1, "content": [ { "txt": I, "time": 0, }, { "txt": have bla bla, "time": 1, }, { "txt": bla bla book, "time": 2, }, { "txt": do not match this block, "time": 3, }, ] } And the search query is like: "span_near": { "clauses": [ {"span_term": {"content.txt": "I"}}, {"span_term": {"content.txt": "book"}}, ], "slop": 5, "in_order": False, } And I want to return "content.time": [0,1,2] Now, I know by using the nested field, the "content.time" can be retrieved,

little modification of the native search engine/form of ps 1.6

99封情书 提交于 2021-01-29 08:10:23
问题 This will be my first post here, I tried to look for faqs about the rules of this site but no clear answer for my doubts, so don't hesitate on telling me if i do smthing wrong or whatever about me: i'm working for some shops, on their websites, i got low-level programing exp, and i'm very familiarized with web developing I need some help about Prestashop programing, i'll quote what i posted on their forum (im getting no answers): PS: 1.6.1.14 default bootstrap Hi guys I'm trying to make an

Efficient low-cardinality ANDs in a search engine

∥☆過路亽.° 提交于 2021-01-29 05:03:02
问题 How do search engines such as Lucene, etc. perform AND queries where a term is common to many documents in the dataset? For example, in an inverted index of: term | document_id --------------------- program | 1, 2, 3, 5... python | 1, 4 code | 4 c++ | 4, 5 the term program is present in several documents meaning a query of program AND code would require performing an intersection upon a very large set of documents. Is there a way to perform AND queries without having to take the intersection

Understanding Recall and Precision

陌路散爱 提交于 2020-08-02 04:39:48
问题 I am currently learning Information retrieval and i am rather stuck with an example of recall and precision A searcher uses a search engine to look for information. There are 10 documents on the first screen of results and 10 on the second. Assuming there is known to be 10 relevant documents in the search engines index. Soo... there is 20 searches all together of which 10 are relevant. Can anyone help me make sense of this? Thanks 回答1: Recall and precision measure the quality of your result.

ElasticSearch: search inside the array of objects

旧街凉风 提交于 2020-07-04 07:52:09
问题 I have a problem with querying objects in array. Let's create very simple index, add a type with one field and add one document with array of objects (I use sense console): PUT /test/ PUT /test/test/_mapping { "test": { "properties": { "parent": {"type": "object"} } } } POST /test/test { "parent": [ { "name": "turkey", "label": "Turkey" }, { "name": "turkey,mugla-province", "label": "Mugla (province)" } ] } Now I want to search by both names "turkey" and "turkey,mugla-province" . The first

Unable to get results more than 100 results on google custom search api

跟風遠走 提交于 2020-05-25 17:13:11
问题 I need to use Google Custom Search API https://developers.google.com/custom-search/v1/overview. From that page, it said: For CSE users, the API provides 100 search queries per day for free. If you need more, you may sign up for billing in the Developers Console. Additional requests cost $5 per 1000 queries, up to 10k queries per day. I already sign up for billing inside the developer console. However, I still could not retrieve results more than 100. What things should I do more? https://www

Unable to get results more than 100 results on google custom search api

て烟熏妆下的殇ゞ 提交于 2020-05-25 17:12:49
问题 I need to use Google Custom Search API https://developers.google.com/custom-search/v1/overview. From that page, it said: For CSE users, the API provides 100 search queries per day for free. If you need more, you may sign up for billing in the Developers Console. Additional requests cost $5 per 1000 queries, up to 10k queries per day. I already sign up for billing inside the developer console. However, I still could not retrieve results more than 100. What things should I do more? https://www

Android: Edittext acting as search engine

做~自己de王妃 提交于 2020-02-02 16:15:29
问题 Is there a way that my Edittext in my application act as a search engine like google or yahoo? Is there any tutorial that can help me? 回答1: i think you can use SearchView, for your purpose refer this link also Creating a Search Interface 回答2: What are you trying to achieve ?, but you can directly gettext from edittext and search that text using google api. 回答3: you can follow this tutorial Here if you search name automatically the matchings are highlight as like Google 来源: https:/

mysql return table name

℡╲_俬逩灬. 提交于 2020-02-02 02:57:06
问题 let's say i have this mysql table structure : table : articles ---------------- id content table : news ------------ id news is there a way to search for a string in this two tables and then if the string occurs to return the table's name and the row id ? 回答1: Assuming that the two tables have the same datatypes for id and news/content then a query along the lines of SELECT id, 'articles' as tablename WHERE content like '%string to search for%' UNION SELECT id, 'news' as tablename WHERE news

the Google SEO considerations over using .htaccess rule to ignore top level directory

a 夏天 提交于 2020-01-25 03:28:12
问题 I am using the Concrete 5 CMS to build a website and i'd like to push it live. I have the code in a directory called /concrete5.5.2.1 and rather than updating the references in the database and moving the code on the filesystem, i'm considering using an .htaccess rule to effectively ignore that directory. However, I'm keen to know if doing something like this below would mean that Google would index the /concrete5.5.2.1? Or would this be ignored? RewriteEngine On RewriteRule ^concrete5.5.2.1/