search-engine

Search query, 'order by' priority

风流意气都作罢 提交于 2019-12-21 05:46:07
问题 I need implement simple search in small content table: id, name, description, content. Results must be order by priorities name description content it's mean that if searched word was found in description field, it will be shown only after all rows that have dog in name field What I did: I tried create temp table with structure like table that I use but with another field priority. for each field, these I use for search, do insert select to temp table Example: DECLARE @query NVARCHAR(255)

Search query, 'order by' priority

╄→гoц情女王★ 提交于 2019-12-21 05:46:03
问题 I need implement simple search in small content table: id, name, description, content. Results must be order by priorities name description content it's mean that if searched word was found in description field, it will be shown only after all rows that have dog in name field What I did: I tried create temp table with structure like table that I use but with another field priority. for each field, these I use for search, do insert select to temp table Example: DECLARE @query NVARCHAR(255)

I wonder how reverse image search services like tineye.com work …?

别等时光非礼了梦想. 提交于 2019-12-20 18:09:22
问题 How Would the Reverse Image Search Engines like TinEye Work ? I mean what parameters are required to do an image search ? 回答1: Don't know if TinEye use exactly this one, but SURF is a commonly used algorithm for this purpose. Here you can see an usage example in Mathematica where a partial matching of images is used to compose a landscape: 回答2: database: Generaly you have set of images that are collected from web sites. For each image extract key features (SURF, SIFT, whatever) in a form of

Strategy for how to crawl/index frequently updated webpages?

ぐ巨炮叔叔 提交于 2019-12-20 08:19:35
问题 I'm trying to build a very small, niche search engine, using Nutch to crawl specific sites. Some of the sites are news/blog sites. If I crawl, say, techcrunch.com, and store and index their frontpage or any of their main pages, then within hours my index for that page will be out of date. Does a large search engine such as Google have an algorithm to re-crawl frequently updated pages very frequently, hourly even? Or does it just score frequently updated pages very low so they don't get

Lucene search match any word at phrase

放肆的年华 提交于 2019-12-20 06:48:32
问题 i wanna search a string with lots of words, and retrieves documents that matches with any of them. My indexing method is the folowing: Document document = new Document(); document.add(new TextField("termos", text, Field.Store.YES)); document.add(new TextField("docNumber",fileNumber,Field.Store.YES)); config = new IndexWriterConfig(analyzer); Analyzer analyzer = CustomAnalyzer.builder() .withTokenizer("standard") .addTokenFilter("lowercase") .addTokenFilter("stop") .addTokenFilter("porterstem"

Highlighting whole sentence in Lucene.net 2.9.2

一世执手 提交于 2019-12-20 03:49:11
问题 Currently I'm working with the Lucene.net 2.9.2 framework. As a result of my search I would like to achieve result page (asp.net) with highlighted text fragment. I would like that the selected fragment is a whole sentence and not only few words. For example if I have text: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

Google search to retrieve number of results for search keywords

为君一笑 提交于 2019-12-19 22:27:51
问题 I am having a list of keywords and would like to know the number of results for google search for each of those(for my research project). I am using the below code for the same. def showsome(searchfor): hits = -1 try: query = urllib.urlencode({'q': searchfor}) url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' % query search_response = urllib.urlopen(url) search_results = search_response.read() results = json.loads(search_results) data = results['responseData'] print 'Total

How to undo a 301 redirect?

百般思念 提交于 2019-12-19 06:26:08
问题 Now, I don't have any problems with 301 redirects, but one person asked me for the way to undo cached 301 redirects for browsers and search engines, so I replied "by doing a 301 redirect back to the original url", at least thats what I thought was the solution, until I saw people mentioning that you can't do a 301 redirect back http://getluky.net/2010/12/14/301-redirects-cannot-be-undon/ http://www.velocityreviews.com/forums/t500058-undo-301-redirect.html this was a surprise and I don't know

regular expression search engine [closed]

北城余情 提交于 2019-12-18 16:52:29
问题 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 6 years ago . Is there a search engine, that would allow me to search by a regular expression? 回答1: Google Code Search allows you to search using a regular expression. As far as I am aware no such search engine exists for general searches. 回答2: There are a few problems with regular expressions that current prohibit employing

Android: How to store array of strings in SharedPreferences for android

99封情书 提交于 2019-12-18 13:35:19
问题 I'm building an app which searches the web using search engine. I have one edittext in my app from which user will search the web. I want to save the search keywords just like browser history does. I'm able to save and display it with the last keyword but I can't increase the number of searches result. I want to display the last 5 searhes. Here is my code : public class MainActivity extends Activity implements OnClickListener { Button insert; EditText edt; TextView txt1, txt2, txt3, txt4,