search

Which SQL query is better, MATCH AGAINST or LIKE ?

To search the database for rows that have both keywords "foo" AND "bar" in any of the columns "foo_desc" and "bar_desc", I would do something like: SELECT * FROM t1 WHERE MATCH (t1.foo_desc, t2.bar_desc) AGAINST ('+foo* +bar*' IN BOOLEAN MODE) or SELECT * FROM t1 WHERE (CONCAT(t1.foo_desc, t2.bar_desc) LIKE '%foo%') AND (CONCAT(t1.foo...

Which Google API search module for Perl should I use?

Which Google API search module for Perl do you recommend? REST::Google::Search or Google::Search Ease of use is important because I only really need to get the top two, maybe three results from the web search. Also, is there a module that one knows of for getting things from wikipedia? Again easy of use is important. ...

Google Wildcard Operator (*)

I am using the google ajax rest api and I'd like to get local results by prefix. For example: I type in "sta" and I get "starbucks". I wonder if there is a documented or undocumented wildcard operator that that allows you to find results that start with a string. I know that Google does have a wildcard operator but it works on a word...

Visual Studio Search in Selected Folders or File Types Only

Is there a way to limit the visual studio search (find and replace window) to certain file types or folders? ...

MySQL FullText search ??

I am working on search functionality in my website. I want to provide a best search mechanism to users. I am using PHP/MYSQL. Let's say user searched for "sport". I have 30 records having word "sport" and 5 records having word "sports" but when I am searching for sport then following query only returns the result 30 who have the word ...

How to reset stop words in MYSQL?

I want to reset stop word list in mysql for FULLTEXT search. I have installed WAMP Server in my system which have phpmyadmin to access mysql. But I dont know how to reset stop word in phpmyadmin. Can anyone please tell me how to do that. I also http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_ft_stopword_file r...

How to extract a matching phrase from data in MYSQL/PHP ?

I am trying to implement searching functionality in my website. I have following type of data. Title Descr ----- ----- World News World news, news from across the world, all world news events covered World Sports World sports news, for all of sports people, sports is a famous world No...

Find text in files (C#)

Hi Our application allows you to save any file type into the MS SQL DB as a blob/image. I now have to provide the feature to search for text within files. Similar to the standard Windows "find in files" search. What is the best way of achieving this? I've used a StreamReader to read all text from the file and then used Regex to do a ma...

Display Google Keywords that brought a user to the site

I am looking to display something like: Hello, you've reached this site by looking for [google keyword(s)] I'm pretty sure I've seen this done before but I am having troubles figuring out how to grab the keywords that were used to lead a user to my site. Anyone know the answer? ...

Unable to search manuals fast without opening them in Zsh

The following command gives many manuals of Zsh man zsh<tab> I would like to browse them fast to search the word compinit. How can you search the word compinit fast in the manuals in Zsh? ...

make a windows highlight search in c#

Hi there! Would it be possible through c# to actually do a windows search (the one you find in Vista from the menu with higlighting (e.g you write 'fire' and get 'firefox')). Thanks :) ...

Search Active Directory in WebApp for multiple users

a web application I work with requires a form which allows an Administrator to add users into the web applications user table. The web application is intranet based and is run in a number of countries world wide. They need the ability to search Active Directory to find users to add from across multiple domains. Searching domains that ar...

Finding element in LinkedList

If I have an LinkedList of Employee objects... Each employee has a Name, and an ID fields. I have linkedList call list.... If I want to see if the list contains an employee I do: list.contains(someEmployeeObject) How about if I want to see if the the list contains an employee based on the imployee ID.. let's say I have the followi...

Haskell: looking up the second value of a tuple in a list based on the first value

I've got a function here that is meant to look through a list of tuples and find the second value in the tuple by taking in the first value. Here's the function so far: lookup :: String -> [(String,String)] -> String lookup _ _ [] = "Not found" lookup x y zs = if (notFound x zs) then "Not found" else (head [b | (a,b) <- zs, (a==...

Stack Overflow Windows 7 Search Connector

How do I write a Windows 7 Search Connector for Stack Overflow? ...

How do you get search capability similar to Spotlight or iTunes?

I have an NSTableView that contains a few columns that are populated with data. How do I set up a search bar that can filter the rows based on the content of a specific column? I am looking for the type of thing that is done with Spotlight in the Finder or the search bar in iTunes that can filter songs by metadata. ...

How do you search the web for programming related information?

Could you share your frequently used tricks to search the web for programming related information? Here is my toolbox: To find a library or an application I use del.icio.us search (ex. communication java python) or recently stackoverflow. To check recent news about a project or library I use google and narrow my search results to mon...

Python: Replace string with prefixStringSuffix keeping original case, but ignoring case when searching for match

So what I'm trying to do is replace a string "keyword" with "<b>keyword</b>" in a larger string. Example: myString = "HI there. You should higher that person for the job. Hi hi." keyword = "hi" result I would want would be: result = "<b>HI</b> there. You should higher that person for the job. <b>Hi</b> <b>hi</b>." I will not...

Modify Eclipse Search

I recently installed Ganymede SR2 and wanted to search something. I pushed CTRL - H which opens the search view and used the File search. However, what I encountered is that the folders test-build and exploded-archieves where also searched, and I want to disable searches for those folders. I only wanted to search the source code, not wh...

Suggestions for implementing a simple search for "business objects" in a .NET WinForms app?

What's the best way to go about providing a simple search capability for "business objects" in a .NET WinForms application? By "simple search" I mean something like Vista + Windows 7's "search box" that's in the upper-right-hand corner of almost every window, that searches the contents of that window (nothing fancy, probably no "advanc...