search

Inverted index in a search engine

Hello there, I'm trying to write some code to make a small application for searching text from files. Files should be crawled, and I need to put an inverted index to boost searches. My problem is that I kind of have ideas about how the parser would be, I'm willing to implement the AND, NOT, OR in the query. Whereas, I couldn't figure...

C# Binary Search Variation

The list is sorted. I have a List and I d like to do binary search on it. T has members like StartIndex, EndIndex etc. I can do binary search on the list with StartIndex, ie: I have implemented IComparable for this. I need to twist this a little as the following: I want to find a StartIndex that might be OffBy a small value. For exam...

how to change SharePoint search page URL?

Hello everyone, I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template. By default, the search page is using results.aspx as the search result page. I want to change results.aspx to another page (my custom search page to show results, e.g. customsearchresults.aspx), how t...

Search in Folksonomies. How to tackle synonymy problem?

Hi all, Can someone shed some light on how searching is done on web-sites like del.icio.us? If I enter "js"(1), "javascript"(2) or "java script"(3) as my query on delicious, I'm pointed to resources about Java Script. However, depending on the query the returned result sets are different(del.icio.us system returns different set of boo...

Efficiently finding multiple items in a container

I need to find a number of objects from a large container. The only way I can think of to do that seems to be to just search the container for one item at a time in a loop, however, even which an efficient search with an average case of say "log n" (where n is the size of the container), this gives me "m log n" (where m is the number of...

Opensearch plugin: Use %20 instead of + space encoding

Is there a way to write an open search plugin to encode a space character into %20 instead of into + character? I.e. the lala plugin -- http://mycroft.mozdev.org/search-engines.html?name=lala -- contains the following line: <os:Url type="text/html" method="GET" template="http://www.lala.com/#search/{searchTerms}"&gt; Searching for Tom...

google search api not giving results

I am using Google Search API in a website to produce results from the website.(the site) the problem is, it is not producing results at all. If I change the site restriction to some other site(e.g. wikipedia.org or any other) it produces results. It is not that the site is not listed - when I search for site:www.hinroengineering.com on ...

Important data structures in search

I'm interested in teaching myself different data structures, something I currently know very little about. My plan is to implement a few key structures so I understand how they work. I'm looking for suggestions on important data structures to start with. I'm primarily interested in data structures that are relevant to search applicati...

limited search results in gmail

Hi, Does anybody know the way to increase the limited number of 20 mails per page in GMail search results? Cause I've found out setting called 'maximum page size' on the settings page, but unfortunately it relates only to inbox/SentMail features so I'm wondering is there some unknown keyword or something... Thanks in advance. ...

Javascript search for tag and get it's innerHTML

Hello, It's probably something really simple, but I'm just learning. There's a page with 3 blockquote tags on it, and I'd need to get the innerHTML of the one containing a certain string. I don't know how to search/match a string and get the innerHTML of the tag containing the matched result. Any help would be appreciated for this new...

WPF ComboBox which updates its ItemsSource from the database as the Text property changes

I would like to have a ComboBox control on a form which will be used to search a list of investments as the user types. I can do this easily if I cache the entire collection of investments from the database on startup (currently 3,000 or so items), but I would prefer to not do that if it isn't necessary. The behavior that I am trying t...

Google-Analytics API to track Site Search?

So there's this nifty _trackPageview() api method on a tracker object, but is there a corresponding method that can be used to manually track a search? In other words, _trackPageview() reports to GA that a user hit a page. I want something like _trackSearch("terms") that would report to GA that a user searched for something. ...

High-Performance Hierarchical Text Search

I'm now in the final stages of upgrading the hierarchy design in a major transactional system, and I have been staring for a while at this 150-line query (which I'll spare you all the tedium of reading) and thinking that there has got to be a better way. A quick summary of the question is as follows: How would you implement a hierarchi...

How to pass a variable to searchComplete funciton using Google AJAX Search API imageSearch.setSearchCompleteCallback

I am trying to pas a variable using the Google search API. To speed things up for you I believe the problem is with the third last line: imageSearch.setSearchCompleteCallback(this, searchComplete, [imageSearch]); I have a number of div elements, each with their own specific id (ie. "showImagesResults100" and "showImagesResults102", e...

Path stack in a Java recursive search

Hi! I wrote a simple Depth-First search algorithm, which works, but is failing to build the patch right. Im having a tough time trying to understand, why - so, basically, need your help, guys :) Here is the code: public void Search(String from, String to) { String depart = from; String destin = to; if ( (NoChildren(depart) == fa...

Twitter Search alerts for iPhone

I'd like to use Urban Airship to send push notifications to a user's iPhone when a new Twitter Search result is found. I'm pretty positive I'd need a web app built to accomplish this - to register the user's iPhone, save their search terms and poll Twitter Search. How could I go about building this app (in terms of which language to us...

Inverted search: Phrases per document

I have a database full of phrases (80-100 characters), and some longish documents (50-100Kb), and I would like a ranked list of phrases for a given document; rather than the usual output of a search engine, list of documents for a given phrase. I've used MYSQL fulltext indexing before, and looked into lucene, but never used it. They bot...

Find Text Between two words in Java

Hi all, I want to get all text in between 2 words wherver it is. For example: String Testing="one i am here fine two one hope your are also fine two one ok see you two"; From the above string, I want to fetch the words between "one" and "two" in array: My result should be stored in array like this: String result[1] = i am here fine...

parse google search result with asp.net

how i can parse google search result into title, desc and urls? ...

Act as ferret doesn't show results, problem with index

I installed act_as_ferret plugin according to this tutorial http://opensoul.org/2008/4/29/using-shared-indexes-with-acts_as_ferret. However I'm not seeing any results. When I dug further, here is what I see in my act_as_ferret log file link text I'm guessing for some reason its not indexing properly. I deleted my index file couple time...