relevance

Magento Search Engine Relevance Issues

核能气质少年 提交于 2019-12-06 07:13:19
We currently have a Magento website with a large inventory, we are having some issues with relevance of ON SITE search results. We are currently set to 'combine like and fulltext' but the results are aren't what we expected. For example searching for 'Lee Child' (the author), brings up three Lee Child books, then three books with author as 'Lauren Child' and then the rest of the Lee Child books. So essentially we want to give preference to the full text search and view those results BEFORE the like search results. We also want to display in stock products before out of stock products. We have

Solr: fieldNorm different per document, with no document boost

谁说我不能喝 提交于 2019-12-06 02:10:28
问题 I want my search results to order by score, which they are doing, but the score is being calculated improperly. This is to say, not necessarily improperly , but differently than expected and I'm not sure why. My goal is to remove whatever is changing the score. If I perform a search that matches on two objects (where ObjectA is expected to have a higher score than ObjectB), ObjectB is being returned first. Let's say, for this example, that my query is a single term: "apples". ObjectA's title:

Give some fields more relevance and sort by relevance in mysql full text search

旧时模样 提交于 2019-12-05 01:59:00
问题 I have two fields in posts table - post_title and post_content . Now I use standard full text search to match some keywords against both fields. I need to give the title field more relevance than the content field and than order the results by relevance... What would the mysql syntax look like to achieve this goal? I use mysql 5.1 回答1: First, create three FULLTEXT indexes: * one on the title column * one on the body column * one on both title and body columns Then, build your query in the

Solr: fieldNorm different per document, with no document boost

拜拜、爱过 提交于 2019-12-04 07:47:16
I want my search results to order by score, which they are doing, but the score is being calculated improperly. This is to say, not necessarily improperly , but differently than expected and I'm not sure why. My goal is to remove whatever is changing the score. If I perform a search that matches on two objects (where ObjectA is expected to have a higher score than ObjectB), ObjectB is being returned first. Let's say, for this example, that my query is a single term: "apples". ObjectA's title: "apples are apples" (2/3 terms) ObjectA's description: "There were apples in the apples-apples and now

How do search engines find relevant content?

最后都变了- 提交于 2019-12-04 07:24:21
问题 How does Google find relevant content when it's parsing the web? Let's say, for instance, Google uses the PHP native DOM Library to parse content. What methods would they be for it to find the most relevant content on a web page? My thoughts would be that it would search for all paragraphs, order by the length of each paragraph and then from possible search strings and query params work out the percentage of relevance each paragraph is. Let's say we had this URL: http://domain.tld/posts

Give some fields more relevance and sort by relevance in mysql full text search

我怕爱的太早我们不能终老 提交于 2019-12-03 16:13:09
I have two fields in posts table - post_title and post_content . Now I use standard full text search to match some keywords against both fields. I need to give the title field more relevance than the content field and than order the results by relevance... What would the mysql syntax look like to achieve this goal? I use mysql 5.1 Filipe Melo First, create three FULLTEXT indexes: * one on the title column * one on the body column * one on both title and body columns Then, build your query in the following manner: SELECT field1, field2, field3, title, body, MATCH (title) AGAINST ('word_to

C# Finding relevant document snippets for search result display

被刻印的时光 ゝ 提交于 2019-12-03 09:34:44
问题 In developing search for a site I am building, I decided to go the cheap and quick way and use Microsoft Sql Server's Full Text Search engine instead of something more robust like Lucene.Net. One of the features I would like to have, though, is google-esque relevant document snippets. I quickly found determining "relevant" snippets is more difficult than I realized. I want to choose snippets based on search term density in the found text. So, essentially, I need to find the most search term

Retrieve Laravel Model results based on multiple ID's

回眸只為那壹抹淺笑 提交于 2019-12-03 02:50:06
问题 I have implemented ZendSearch into my Laravel application. I am using it as my search engine where users will type a search word, and then ZendSearch will return me an array of results ordered by relevance. However, the array that ZendSearch returns, only returns my record ID's (it doesn't return any of the actual record information). What would next be the correct way to query my Model to retrieve the results based on the ZendSearch array results which is just an array of ID's ordered based

Retrieve Laravel Model results based on multiple ID's

让人想犯罪 __ 提交于 2019-12-02 14:47:26
I have implemented ZendSearch into my Laravel application. I am using it as my search engine where users will type a search word, and then ZendSearch will return me an array of results ordered by relevance. However, the array that ZendSearch returns, only returns my record ID's (it doesn't return any of the actual record information). What would next be the correct way to query my Model to retrieve the results based on the ZendSearch array results which is just an array of ID's ordered based on relevance. I know of Model::find(1) which would return my record with an ID of 1, but how can I feed

How do search engines find relevant content?

耗尽温柔 提交于 2019-12-02 13:56:43
How does Google find relevant content when it's parsing the web? Let's say, for instance, Google uses the PHP native DOM Library to parse content. What methods would they be for it to find the most relevant content on a web page? My thoughts would be that it would search for all paragraphs, order by the length of each paragraph and then from possible search strings and query params work out the percentage of relevance each paragraph is. Let's say we had this URL: http://domain.tld/posts/stackoverflow-dominates-the-world-wide-web.html Now from that URL I would work out that the HTML file name