search

Website Search Algorithm

How does the search algorithm on stackoverflow work? I need to implement a search functionality in one of my web sites. ...

How can I search the contents of .module files?

I'm working with Drupal at the moment and I'm having a real hard time searching the contents of various .module files. For example I want to search for something like "div style="border: 1px solid red;" and find out which file it's in. All my code editors ignore the .module files in their search because it is a strange extension. Windo...

How can I search CSS with Perl?

Hi there, Longtime user/browswer, first time question-asker. I'm writing a Perl script that will go through a number of HTML files, search them line-by-line for instances of "color:" or "background-color:" (the CSS tags) and print the entire line when it comes across one of these instances. This is fairly straightforward. Now I'll ad...

Nutch search always returns 0 results

I have set up nutch 1.0 on a cluster. It has been setup and has successfully crawled, I copied the crawl directory using the dfs -copyToLocal and set the value of searcher.dir in the nutch-site.xml file located in the tomcat directory to point to that directory. Still when I try to search I receive 0 results. Any help would be greatly a...

Can you write HTML to put AdSense ads on your own search results?

I know that I can put a Google Custom Search on my website, and get adsense ads along with it, but I would like to put adsense ads alongside search results provided by my own search engine. What is the HTML I need to add (or JS snippet) to the Google Custom Search in order to get it to also display AdSense? ...

How do I define a search scope "Display Group" for a Site definition

Within each site collection, it is possible to group search scopes for display in the site collections search box. It is possible to modify this programmatically as well. Is it possible to define search scope "Display Groups" within a site definition? I will be creating 8000 odd site collections from this template and it would be nic...

Extract small relevant bits text (as Google does) from the full text search results.

I have implemented a full text search in a discussion forum database and I want to display the search results in a way Google does. Even for a very long html page only a two or three lines of the texts displayed in a search result list. Usually these are the lines which contain a search terms. What would be the good algorithm of how to...

Equivalent of PathMatchSpec for .NET

Does anyone know if there's an equivalent functionality to the Windows API function PathMatchSpec() in .NET? Thanks in advance ...

How do I put adsense ads on my search results page?

I want to show adsense ads on my search results page. With Google Custom Search this is easy. However, I have my own search engine for my site, and I want to show adsense ads on the results page. It doesn't look like this is directly possible. My thought is to show my own search results, and at the same time call Google's search wit...

Intelligent Searching with wildcards (*) and word grouping in SQL Full-text Search

What's the best way implement MS SQL full-text search using all the normal things like wildcards and quotations. For example: If the search term the user inputs is Overdose of "Vitamin C" for child* I would like to treat "Vitamin C" as one phrase and would like to match "child" and "children" The documentation offers so many al...

how can i sort the github search

there are several filters mentioned but not how to use them. i could not figure out how... e.g. the pushed: filter. ...

Sharepoint search of external RSS feeds

I want my sharepoint site to allow a user to search content in a known collection of RSS feeds. I figure conceptually a few ways to do this crawl the feeds at their source (Yikes!) Pull the full articles into my sharepoint site, then let my crawler crawl it Make use of an existing index (like google) search the full articles, on deman...

Django haystack and whoosh

Does anyone have any experience using django-haystack with the whoosh backend? I'm looking to use it for a categorized live-search type tool. Is it gonna be fast/efficient enough in a production environment to avoid setting up either solr or xapian? ...

how does google analytics calculate metrics like "average time spent" ?

how services like google analytics calculate parameters like "average time spent" "number of users that came to the website via search Vs user that hit the url directly etc. I would imagine that google can easily record a HIT when someone clicks on a link in serach result. But after that how long and deep the user is brwosing that per...

How should I print out a particular character in the file after reading the file?

Hi, I am reading a file using perl script. This file consists of strings with different characters and I am supposed to identify strings containing the character 'X'. I want to know how should I (1) print this string (containing 'X') and also (2) write this string to another file (3) count the number of 'X' characters in the whole file....

Does ActiveRecord support dynamic conditions in sql statements?

I want to make a SQL query in a Rails app that adds a condition when a drop-down menu is added. Obviously I don't want to search with a blank condition if the drop down is not selected. How can I develop a dynamic condition in an SQL statement? untested example: When dropdown is not selected: Object.find("billy," :conditions => {}) Wh...

Stop word wrapping in VS2008 (vb)

Unfortunately VS2008 has wrapped some of my code automatically, this isnt helpful for searching as it has wrapped at points that has resulted in split names of variables in my designer project. e.g. Variable named MyVariable would appear as below: "MyVar", & _ "iable" This means i cant search for these variables. Is there any...

SQL Server: Search all tables for a particular GUID

i came across the need to cleanse some data, and i need to find some particular guids (i.e. uniqueidentifiers) in SQL Server°. i've come up with a stored procedure that does a SELECT from every uniqueidentifier column in every table in the current database, and returns a result set if the guid is found. It uses the INFORMATION_SCHEMA v...

Lucene: How to do wildcard search inside a Term?

I've the following lucene index: Document A item = level:(1) item = level:(2) item = level:(3) Document B item = level:(1) item = level:(4) Suppose I want to search for all documents which contain level:(1) AND level:(2) ? The Lucene query could be like: "item:level\:\(1\) AND level\:\(2\)" but is it also possible to do something...

Find First Specific Byte in a Byte[] Array c#

Hi there, I have a byte array and wish to find the first occurance (if any) of a specific byte. Can you guys help me with a nice, elegant and efficient way to do it? /// Summary /// Finds the first occurance of a specific byte in a byte array. /// If not found, returns -1. public int GetFirstOccurance(byte byteToFind, byte[] byteArra...