search

Using NOT keyword with full-text search and multiple columns

Is it possible to use the CONTAINSTABLE and NOT keywords with SQL Server full-text searching and exclude rows where a single column contains the value to be excluded? For example, let's take the following indexed view (simplified for the purposes of illustrating this problem): ItemId INT FirstName VARCHAR(200) MiddleName VARCHAR(200) L...

How can one perform full text search in Google App Engine?

It's a simple question, but I haven't found the answer anywhere. Thoughts and input appreciated. I'm using Django, too, for what it's worth. :) Cheers. ...

Fast filtering of a string collection by substring?

Do you know of a method for quickly filtering a list of strings to obtain the subset that contain a specified string? The obvious implementation is to just iterate through the list, checking each string for whether it contains the search string. Is there a way to index the string list so that the search can be done faster? ...

need gmail like functionailty - jquery autocomplete to include names and email addresses - in string searching

I recently asked this question and got back a great solution using jquery for autocomplete: http://stackoverflow.com/questions/1297518/need-a-good-way-for-user-to-select-to-for-email-sending The solution was to use this syntax: $("#suggest3").autocomplete(someArray, { multiple: true, mustMatch: true, autoFill: true }); ...

Zend_Search_Luncene handle Querys

Hi, iam trying to implement an Searchmachine into my site. Iam using Zend_Search_Lucene for this. The index is created like this : public function create($config, $create = true) { $this->_config = $config; // create a new index if ($create) { Zend_Search_Lucene_Analysis_Analyzer::setDefault( new Zend_...

How do I customize my Wordpress search form?

hello, Mission i would like to customize the search field and button on my wordpress blog. the search textfield and button i have in mind will have 3 states: off :hover :focus so i will need to have 3 different DIV ids for each of these 3 states. Search's Text Field specifics additionally I will need there to be the text "search s...

UISearchBar Sample Code

Implementing a searchbar can be tricky business and I'm struggling to make it work for my situation. Here's a collection of some of the sample code I've found for implementing a UISearchBar. Please share any others below you've come across below. Apple's TableSearch code implements a contacts-like search of a simple tableview. Beginnin...

Google Search CSE open in same page - AJAX / iframe overlay

Hi Guys, I've got the google cse on my site to display results in the right place but when i click on them it opens in a new page, i want it to open in the same page but can't figure it out. All the files are uploaded and the page can be found at http://www.alwaystwisted.com/sandbox/stagecraft/template.html Thanks in advance Regards...

C# search with resemblance / affinity

Hi! Suppose We have a, IEnumerable Collection with 20 000 Person object items. Then suppose we have created another Person object. We want to list all Persons that ressemble this Person. That means, for instance, if the Surname affinity is more than 90 % , add that Person to the list. e.g. ("Andrew" vs "Andrw") What is the most effec...

Efficient flat file searching in PHP

I'd like to store 0 to ~5000 IP addresses in a plain text file, with an unrelated header at the top. Something like this: Unrelated data Unrelated data ----SEPARATOR---- 1.2.3.4 5.6.7.8 9.1.2.3 Now I'd like to find if '5.6.7.8' is in that text file using PHP. I've only ever loaded an entire file and processed it in memory, but I wonde...

How to use n-grams approximate matching with Solr?

We have a database of movies and series, and as the data comes from many sources of varying reliability, we'd like to be able to do fuzzy string matching on the titles of episodes. We are using Solr for search in our application, but the default matching mechanisms operate on word levels, which is not good enough for short strings, like ...

How does a MOSS web front end route search requests to query servers?

Does the web front end accept a search request coming from my own program? If yes, how does the request get routed to a particular query server, given that I have multiple query servers? Is any particular algorithm used (e.g. round-robin)? ...

Finding the position of search hits from Lucene

With Lucene, what would be the recommended approach for locating matches in search results? More specifically, suppose index documents have a field "fullText" which stores the plain-text content of some document. Furthermore, assume that for one of these documents the content is "The quick brown fox jumps over the lazy dog". Next a sear...

Is it possible to do a Google/Yahoo/Bing search restricted to the "description" meta data?

I'm working on a project that would be greatly optimized if I am able to restrict a Google, Yahoo or Bing/Live search to just the < meta content="xyz" name="description" /> tag. I read all the help pages and api docs and can't seem to find a way to do it, and I thought I'd give it a shot here on Stack Overflow. Thanks :) ...

Making an index for a search by PHP

How can you search only unique words with PHP such that I can learn the basics in making the search? I have had a few problems in making a multidimensional array for questions. My first unsuccessful attempt is the following. #1 $result = pg_query_params ( $dbconn, "SELECT question_id, body FROM questions", array () ); ...

How does codeandtheory's live search work?

I've been trying to figure out how the "live search" function at http://www.codeandtheory.com/#/work/ works. I've looked at in firebug, and have looked at a bunch of AJAX search tutorials but codeandtehory's seems to work a lot "smoother". Any ideas? ...

Using 'OR' between HAVING and WHERE clause in MySQL?

I am trying to fetch records in MySQL using a simple used submitted field. More precisely, the user inputs a name (firstname or lastname or fullname) and the server should return matched rows. What I am doing so far is something like: SELECT * FROM people WHERE firstname LIKE '%user_submitted_data%' OR lastname LIKE '%user_sub...

Search MySQL Query

I have the below Code SELECT * FROM table WHERE MATCH(message) AGAINST ('Hello*') If the message string is like this "HelloWhatsHappening" It dosent Work return anything But if i have "Hello WhatsHappening" It works fine It will also work if the string is as such: "Hello= WhatsHappening" Any Ideas? ...

Any built-in function to test if 4 is in [1,2,3,4] (vector)

In Ruby I can do: [1,2,3,4].include?(4) #=>True In Haskell I can do : 4 `elem` [1,2,3,4] #=> True What should I do in C++? ...

Searching through Collections in Java

I have a java properties file containing a key/value pair of country names and codes. I will load the contents of this file into a Collection like List or HashMap. Then, I want users to be able to search for a country, e.g if they type 'Aus' in a textbox and click submit, then I want to search through the collection I have, containing a...