search-engine

How Get Suggestions from Solr Server in a PHP variable

佐手、 提交于 2019-11-29 12:05:50
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> <result name="response" numFound="0" start="0"></result> <lst name="spellcheck"> <lst name="suggestions">

How to download google image search results in Python

倾然丶 夕夏残阳落幕 提交于 2019-11-29 12:03:58
问题 This question has been asked numerous times before, but all answers are at least a couple years old and currently based on the ajax.googleapis.com API, which is no longer supported. Does anyone know of another way? I'm trying to download a hundred or so search results, and in addition to Python APIs I've tried numerous desktop, browser-based, or browser-addon programs for doing this which all failed. Thanks! 回答1: Use the Google Custom Search for what you want to achieve. See @i08in's answer

Search-Engine Friendly URLs

丶灬走出姿态 提交于 2019-11-29 11:31:00
I am working on building my first search-engine friendly CMS. I know that perhaps one of the biggest keys to having and SEO site is to have search-engine friendly URLs. So having a link like this: http://www.mysite.com/product/details/page1 will result in much better rankings than one like this: http://www.mysite.com/index.php?pageID=37 I know that to create URLs like the first one, I have one of two options: use a web technology, in this case PHP, to create a directory structure leverage Apache's mod_rewrite add-on to have these URLs passed to a PHP processor As far as the PHP goes, I'm

SEO and 301 redirects - Can they have relative paths or must they be absolute?

狂风中的少年 提交于 2019-11-29 10:26:10
SEO and 301 redirects - Can they have relative paths or must they be absolute? When doing a 301 redirect for a page, are the BOTs/Spiders going to treat a 301 that goes to a relative path (redirect="../") the same as one that goes to an absolute path (redirect="http://www.somewebsite.com/apage/"). For example I have a parent page with content ( http://www.somewebsite.com/apage/ ) on it... I have a subpage ( http://www.somewebsite.com/apage/more-details ) with further content on it. I plan to move the further content into the main page itself and get rid of the ( http://www.somewebsite.com

How does a website highlight search terms you used in the search engine?

醉酒当歌 提交于 2019-11-29 09:53:23
I've seen some websites highlight the search engine keywords you used, to reach the page. (such as the keywords you typed in the Google search listing) How does it know what keywords you typed in the search engine? Does it examine the referrer HTTP header or something? Any available scripts that can do this? It might be server-side or JavaScript, I'm not sure. This can be done either server-side or client-side. The search keywords are determined by looking at the HTTP Referer (sic) header. In JavaScript you can look at document.referrer . Once you have the referrer, you check to see if it's a

Counting number of views for a page ignoring search engines?

霸气de小男生 提交于 2019-11-29 09:24:27
问题 I notice that StackOverflow has a views count for each question and that these view numbers are fairly low and accurate. I have a similar thing on one of my sites. It basically logs a "hit" whenever the page is loaded in the backend code. Unfortunately it also does this for search engine hits giving bloated and inaccurate numbers. I guess one way to not count a robot would be to do the view counting with an AJAX call once the page has loaded, but I'm sure there's other, better ways to ignore

Azure Search - Find matches within a word like “contains”

北城以北 提交于 2019-11-29 08:52:21
I use Azure Search which in turn uses Lucene. Is there any way to make search not that strict. What I need is when searching for " term " should match documents with terms that contain " term ". Serching fox term should match "Prefix Term ", " Term Suffix", "Prefix Term Suffix" Serching fox part2 should match "part1 part2 ", " part2 part3", "part1 part2 part3" I need to run search query which has several terms like "term part2" To match documents like: { someField:"... PrefixTermSuffix ... part1part2part3 ..." } { someField:"... PrefixTerm ... part2part3 ..." } etc You can use regex expression

Methods for preventing search engines from indexing irrelevant content on a page

孤者浪人 提交于 2019-11-29 06:00:23
I'm looking for ways to prevent indexing of parts of a page. Specifically, comments on a page, since they weigh up entries a lot based on what users have written. This makes a Google search on the page return lots of irrelevant pages. Here are the options I'm considering so far: 1) Load comments using JavaScript to prevent search engines from seeing them. 2) Use user agent sniffing to simply not output comments for crawlers. 3) Use search engine-specific markup to hide parts of the page. This solution seems quirky at best, though. Allegedly, this can be done to prevent Yahoo! indexing specific

Lucene: how to boost some specific field

旧街凉风 提交于 2019-11-29 03:58:36
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. Here is how you can do that: Query titleQuery, viewsQuery; titleQuery.setBoost(0.8); viewsQuery.setBoost(0.2); BooleanQuery query = new BooleanQuery();

How to 301 redirect in ASP.NET 4.0?

我们两清 提交于 2019-11-29 03:50:57
I am trying to implement URL redirect for the website rather than doing it page by page. I want to do it in the global.asax file. Below is the code i have defined. I want to have http://website.net as my main url & want to have a permanent URL redirect if someone types in http://www.website.net . Unfortunately it is not working for the live website. Can anyone point out the problem in the code. The code doesn't generate any error. void Application_Start(object sender, EventArgs e) { // Code that runs on application startup if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http