search-engine

Connect to SphinxQL through Linux command-line

假装没事ソ 提交于 2019-12-18 10:22:37
问题 I am trying to connect to SphinxQL server through Linux command-line this way: > mysql -P 9306 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) My Sphinx config file has 2 listen entries: listen = 9312 listen = 9306:mysql41 searchd daemon is running: > ps ax | grep searchd 10727 ? S 0:00 /usr/local/sphinx/bin/searchd 10728 ? Sl 0:00 /usr/local/sphinx/bin/searchd Regular search queries work perfectly: > /usr/local/sphinx/bin/search StackOverflow | more Sphinx

How reliable is ElasticSearch as a primary datastore against factors like write loss, data availability

淺唱寂寞╮ 提交于 2019-12-18 10:07:25
问题 I am working on a project with a requirement of coming up with a generic dashboard where a users can do different kinds of grouping, filtering and drill down on different fields. For this we are looking for a search store that allows slice and dice of data. There would be multiple sources of data and would be storing it in the Search Store. There may be some pre-computation required on the source data which can be done by an intermediate components. I have looked through several blogs to

How to extract information from ODP accurately? [closed]

人盡茶涼 提交于 2019-12-18 09:26:29
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am building a search engine in python. I have heard that Google fetches the description of pages from the ODP (Open Directory Project) in case Google can't figure out the description using the meta data from

Does Elasticsearch keep an order of multi-value fields?

与世无争的帅哥 提交于 2019-12-18 07:17:20
问题 Does Elasticsearch keep an order of multi-value fields? I.e. if I've put following values into fields: { "values": ["one", "two", "three"], "values_original": ["1", "2", "3"] } (Given that fields are not analyzed) Can I be sure that the contents of lists will always be returned in the same order I put it there? In the example above, I want to make sure that "one" on first position in "values" will always correspond to "1" in "values_original" etc. I could keep it also as nested objects, i.e.

How Get Suggestions from Solr Server in a PHP variable

旧时模样 提交于 2019-12-18 07:07:30
问题 I've got this problem that I can't solve. Partly because I can't explain it with the right terms. I'm new to this so sorry for this clumsy question. Below you can see an overview of my goal. I'm using Magento CE 1.7.0.2 & Solr 4.6.0. Working with Spell checker in Solr I'm Searching with iphon instead of iphone the solr Spell Checker throwing these suggestions. <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">48</int> </lst> <str name="command">build</str>

Lucene: how to boost some specific field

你说的曾经没有我的故事 提交于 2019-12-18 04:08:32
问题 In my case, documents have two fields, for example, "title" and "views". "views" is represented the num of times that people have visited this document. like: "title":"iphone", "views":"10". I have to develop a strategy that will assign some weights to views, such as the relevance score is calculated by score(title)*0.8+score(views)*0.2. Does lucene can do this? And I want to know whether there are some algorithms related to this question. 回答1: Here is how you can do that: Query titleQuery,

How to get the referer search query from google?

痞子三分冷 提交于 2019-12-18 04:03:12
问题 As recently as two days ago, the following code worked to get the search query from google: $refer = parse_url($_SERVER['HTTP_REFERER']); $host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST); $query = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY); if(strstr($host,'www.google.com')) { //do google stuff $qstart = strpos($query, 'q=') +2; $qend = strpos($query, '&', $qstart); $qlength = $qend - $qstart; $querystring = substr($query, $qstart, $qlength); $querystring = str_replace('q=','

How to get the referer search query from google?

拈花ヽ惹草 提交于 2019-12-18 04:03:02
问题 As recently as two days ago, the following code worked to get the search query from google: $refer = parse_url($_SERVER['HTTP_REFERER']); $host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST); $query = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY); if(strstr($host,'www.google.com')) { //do google stuff $qstart = strpos($query, 'q=') +2; $qend = strpos($query, '&', $qstart); $qlength = $qend - $qstart; $querystring = substr($query, $qstart, $qlength); $querystring = str_replace('q=','

Ruby on Rails, How to determine if a request was made by a robot or search engine spider?

风流意气都作罢 提交于 2019-12-17 22:41:34
问题 I've Rails apps, that record an IP-address from every request to specific URL, but in my IP database i've found facebook blok IP like 66.220.15.* and Google IP (i suggest it come from bot). Is there any formula to determine an IP from request was made by a robot or search engine spider ? Thanks 回答1: Robots are required (by common sense / courtesy more than any kind of law) to send along a User-Agent with their request. You can check for this using request.env["HTTP_USER_AGENT"] and filter as

Programmer-friendly search engine? [closed]

喜夏-厌秋 提交于 2019-12-17 21:38:02
问题 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 4 years ago . Google is unfriendly to searching for verbatim strings with characters like $ and #. Is there a search engine that supports searching for verbatim strings? I'm aware of this question that was asked a while ago, but didn't get any good answers. I'm ready to put a bounty if I still can't get an answer. Of course