search

Thinking Sphinx Search Box

I'm trying to get Thinking Sphinx running on my site but I'm not sure how to set up the search box and button for the index page. I have in my model: define_index do indexes :name indexes description where "approved = 'true'" end In my controller: def index @businesses = Business.search params[:search] end And in my in...

Search for field references within a Microsoft Access "application"

I have inherited a MS Access "application" and would like to trace all references to one of the fields. Is there a way to search for the field (all google hits are for querying the table). NOTE: I am not looking for any SQL help, I'd like something like the Visual Studio right-click -> find all references type thing. ...

What is the best way to mimic the findstr functionality in c#?

I am searching for several thousand strings in a large directory tree which contains several thousand files. Each string can appear in many different files. What is the most performant way to perform this search in c#? I tried proccessinfo start with findstr (but it is painfully slow, because it opens every single file several thousand t...

Fast 'Find in Files' for VIM?

What are some options for getting really fast 'Find in Files' searching in VIM? Our codebase is large enough that searching needs to work off an index. grep/vimgrep/etc are too slow. Indexing doesn't need to be particularly fast; I can index overnight. Thanks, [EDIT] I'm also working in a Windows environment. ...

MySQL: Improve query time with word search

Scenario I have a search facility on a website that sells products. The page is built with PHP and MySQL searching against a Merged View that joins 10+ tables together. There are approx 12,000 records in the view with 20+ fields each. A user can search for products matching a specific criteria using multiple (10-15) select menus. The...

Efficient way to get first missing element in ordered sequence?

I have an ordered sequence like {1, 3, 5, 6, 8, 9} I want to get first missing element(2 in the example) or max() if sequence contains no missing elements. Now I'm doing it like this: public static int GetRegisterNumber<T>(this IQueryable<T> enumerable, Func<T, bool> whereFunc, Func<T, int?> selectFunc) { var regNums = enumerable.Or...

Algorithm for multiple word matching in text

I have a large set of words (about 10,000) and I need to find if any of those words appear in a given block of text. Is there a faster algorithm than doing a simple text search for each of the words in the block of text? ...

SQL Algorithm Trouble - for loop to add and filter results

I am struggling yet again with SQL with my search function. Basically I want a stored proc that splits up a string into words then for each word I want to check using Full Text Search if it is in any of 2 tables. If results are found in these tables it should add them to any results it found for the other words and return a set where t...

.Net and sql server Search

I have an asp.net web application written in C# using a SQL Server 2008 database. The database contains events with information across a number of tables such as event, venue, city and bands playing. In the ideal world I'd like my users to enter a natural lanaguage type query in a single search box along the lines of "The Who in Brisban...

Building blocks for a website with good search and is very responsive

I have a project in mind whose main selling point would be very good search results and very responsive (another Google for domain specific data). I'm not worried much about scaling at this point. Whats the best ORM, Search and UI framework combinations can one choose and what are the pros and cons. I'm mainly a Java programmer but this...

Is there a way that Sharepoint can index a doc and a companion file but treat them as one piece of information?

I have an external system that will send us events in XML. The event will include a link to an Office document and some other metadata. Now I want Sharepoint to index the document and metadata together. The result I want to achieve is - when a user search hits either metadata or contents of the Office document, I can render a page inclu...

How to match search strings to content in python

Usually when we search, we have a list of stories, we provide a search string, and expect back a list of results where the given search strings matches the story. What i am looking to do, is the opposite. Give a list of search strings, and one story and find out which search strings match to that story. Now this could be done with re b...

Thinking_Sphinx search options

Similar Stack Overflow Question I want users to be able to search through my thinking_sphinx text box a word like wood and have it pull up Wooden and Woodworking. This words fine if the user types in wood*, but if they type in just wood with no * then no results are shown. If there a way to get the results of wood* without having to ty...

search for winforms datagridview

I'm looking to implement a search box for a datagridview control similar to let's say firefox Control-F which would bring up a search box and on finding a match the row would be highligted etc. Is there any similar functionality perhaps using Lucene.net or similar ? Note - this would be different than say DataTable.Search() as the # of...

Sharepoint managed Properties

I have a custom Content Type inside a list that has over 30 items, and I have added several "managed properties" to the "crawled properties", in the SSP. All of them work except 1. The column "Synopsis" is a multiline field with no limit on it's length. It appears as a crawled property "Synopsis", and is mapped to a managed property 'as...

Php redirection of a form with search query term between url

Hi! I'm using PHP in order to redirect some search query. There is some example of code here (click). And my PHP code is: audio_action.php : <?php $search_field = trim($_POST['audio_field']); $search_engine = trim($_POST['audio']); $url_params = preg_replace('/(\ )+/', '+', $search_field); $url = array('deezer'=>'http://www.deezer.co...

How do I find a matching subtree?

I have a large binary tree, T. T "matches". Some number of subtrees of T will also match. In fact, the matching subtrees need not even be full subtrees: they can be truncated, too. By truncated subtree, I mean that nodes in the subtree may not contain children all the way down - some nodes that have children may have their children r...

how to use shell script search directory pattern remotely

I need to use scp update some directory at another server. It is similar to for i in /usr/some/???/unknown/dir do cp /usr/some/file $i done so how can i do the search while the destination directories are on other server? thank you ...

What's the difference between BOSS and the Yahoo Web Search API?

If I'm building a commercial search engine to display results from Yahoo! search, should I use BOSS or the Yahoo Web Search API? What's the difference? ...

MySQL full text search across multiple tables

I have a series of tables that contain data I want to full text search. I've tried combining the tables with UNION, but the result loses its fulltext index so can't be fulltext searched. I don't think that putting the data into a temp table is the way to go. Is there someway that I can fulltext search these tables efficiently? Thanks in...