search-engine

Can ElasticSearch return relevant passages and not the entire document

混江龙づ霸主 提交于 2020-01-06 05:34:16
问题 I'm looking for a search engine that is able to return just relevant passages as a result and not the entire documents. Is ElasticSearch able to do this? 回答1: If you are looking to extract part of a long document, look at Highlighting. Specifically parameters like fragment_size (100 characters by default) or boundary_chars will help you to build that functionality. 来源: https://stackoverflow.com/questions/53904137/can-elasticsearch-return-relevant-passages-and-not-the-entire-document

Best way to search for partial words in large MySQL dataset

你离开我真会死。 提交于 2020-01-04 05:52:28
问题 I've looked for this question on stackoverflow, but didn't found a really good answer for it. I have a MySQL database with a few tables with information about a specific product. When end users use the search function in my application, it should search for all the tables, in specific columns. Because the joins and many where clauses where not performing really well, I created a stored procedure, which splits all the single words in these tables and columns up, and inserts them in the table.

I need help with adding condition to php live search

与世无争的帅哥 提交于 2020-01-02 18:55:21
问题 I am just learning php and ended up at this tutorial http://www.w3schools.com/php/php_ajax_livesearch.asp Till now my PHP search file looks the same as in example but i changed the if (strlen($q) > 0) to if (strlen($q) > 3) to display results after typing minimum 3 words. I am wondering how can i make the results paginate if there are lots of them? Thanks Roshan 回答1: You would need to page after obtaining the number of records from your database. Paging should be done by the same script that

Drupal search engine does not index my custom nodes!

独自空忆成欢 提交于 2020-01-02 17:34:18
问题 Somebody has posted an hour ago or so a question that was about the drupal search engine and was about like this: I know drupal should index anything that is returned by node_view() but this is not happening for my custom content. Also: are there better alternatives to Drupal built-in functionality? As the question has been removed while I was answering, and didn't want to throw away 20 minutes of my life for nothing ;) I thought to re-create the question a second time. Hope this is fine by

How to replace robots.txt with .htaccess

空扰寡人 提交于 2020-01-02 10:09:18
问题 I have a small situation where i have to remove my robots.txt file because i don't want and robots crawlers to get the links. Also i want them to be accessible by the user and i don't want them to be cached by the search engines. Also i cannot add any user authentications for various reasons. So i am thinking about using mod-rewrite to disable search engine crawlers from crawling it while allowing all others to do it. The logic i am trying to implement is write a condition to check if the

How to block bad unidentified bots crawling my website?

岁酱吖の 提交于 2020-01-01 10:03:36
问题 How can I resist the bad unidentified bots to crawl my website? Some bad bots whose name is not present in cPanel of Apache are badly accessing my website bandwidth. I had tried robots.txt on batgap.com/robots.txt and also blocked with .htaccess but there is no improvement in bandwidth usage. I don't know the IP of those bots so unable to block them by IP address. These bots are consuming too much bandwidth of site and hence a result I need to increase it from server. 回答1: I'm from Incapsula

Elastic search - integrate with java web application

女生的网名这么多〃 提交于 2020-01-01 05:19:36
问题 I am developing a java web application (ERP system). I have completed basic flows. Now as per my client requirement, we need to implement few search options. (i.e. Employees, Users, Invoices, Inventory, etc.) I am planning to implement a search engine for this. I feel Elastic search is good option for my search (Please suggest me, if any other good options). Please suggest me some good documentation, on how to integrate Elastic search with a java( Spring+Hibernate ) web application. (Point me

Solr associations

五迷三道 提交于 2020-01-01 03:14:09
问题 The last couple of days we are thinking of using Solr as our search engine of choice. Most of the features we need are out of the box or can be easily configured. There is however one feature that we absolutely need that seems to be well hidden (or missing) in Solr. I'll try to explain with an example. We have lots of documents that are actually businesses: <document> <name>Apache</name> <cat>1</cat> ... </document> <document> <name>McDonalds</name> <cat>2</cat> ... </document> In addition we

Is there a search engine that support regular expression search? [closed]

家住魔仙堡 提交于 2019-12-31 08:43:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . First, I checked this question but the answer refers to an obsolete service. So is there a web-based (or software, I don't care) that provide searching internet content with regular expression? 回答1: Let me write here an answer from the superuser.com question due to my complete solidarity with the author: quote

Android Listview Search filter

走远了吗. 提交于 2019-12-31 05:38:07
问题 I am trying to make a list view search for Android. I have found many tutorials that do just that where a search-bar is placed at the top and if you type in the box the results get filtered. In my app I want to click on given items after filtering has been completed, I have implemented setOnItemClickListener. The issue is that after filtering the position of each class that I want to open changes and the incorrect pages open. I was unable to find a solution.... Here is the jave code: package