search

Search Box Text - Show Hide Feature

On Chris Coyer's site he uses a nice little search box. I am curious to know how you get the text in the search box to disappear and reappear when you click out of the box. Thanks to a helpful person on this forum I use the following to have the text disappear when I click in the box: <input type="text" value="Search" onfocus="if (this...

Many to many and writing a semi-smart matching algorithm

Hello community, I'm learning to program with Ruby on Rails and I've reached my hardest task yet. I have two tables, each containing a list of business categories (I.E. Thai Food Restaurant, Plumber, Office Supply Store). These two tables come from two different APIs where I'm essentially acting as the middle-man between them. They list...

Compass Autocomplete to only return index words

I am currently trying to configure a compass query for autocomplete. I have it working so that the compass query will return an object. I would like to modify it so that it will return matching words in the index, not matching results. Thanks. ...

Question on Scheme with Best First Search algorithm

Okay this is a homework question, and I just don't have a clue how I suppose to start. Some help and hints will be much appreciated. I need to use a heuristic function to solve a maze type problem. Suppose I have a 5x5 grid, and a robot in position (1,5) and my goal is to move the robot to (5,1). Along the way there are few obstacles...

Is there a Faceted Search framework for SQL Server & .NET?

I currently use SQL Server to store products in a large catalog web site. I'd like to rebuild the simple categorization we have to something with tags & facets so that users can filter down to relevant subsets as quickly as possible. I should NOT do this myself. Without going too far afield (VM to host level 3 aeai) does anyone know of a...

Is there a Java API for Google's AJAX Search API

Does anyone know of a Java library that provides a structured interface to Google's AJAX Search API http://code.google.com/apis/ajaxsearch/? I could only find Java API's for their old SOAP based interface. ...

Binary Searching

Hi So, I want to understand more about binary searching, cause I don't really understand. Binary search requires a precondition that an array is sorted. I got that right? It seems like a method should check this precondition and throw an exception if it is not met. But, why is checking the precondition a bad idea? ...

Debug irrelevant Wordpress search results

On Wordpress, I keep getting irrelevant search results. Some search strings that do not exist on the DB yield All Posts as results. Some search strings that DO exist, works great. What could be the cause of that behavior? I've uninstalled all related plugins. Is there a way to debug the search? Thanks! ...

Grep multi-layered iterable for strings that match (Python)

Say that we have a multilayered iterable with some strings at the "final" level, yes strings are iterable, but I think that you get my meaning: ['something', ('Diff', ('diff', 'udiff'), ('*.diff', '*.patch'), ('text/x-diff', 'text/x-patch')), ('Delphi', ('delphi', 'pas', 'pascal', 'objectpascal'), ('*.pas',), ('text/x-pascal',['lets',...

PHP and Regex - storing a piece of the string for later use in replacement?

Not sure if the subject was clear, hard to describe, easy to show: I need to convert this: $text = 'Bunch of text %img_Green %img_Red and some more text here'; to this: $text = 'Bunch of text <img src="/assets/images/Green.gif" alt="Green" /> <img src="/assets/images/Red.gif" alt="Red" /> and some more text here'; Thanks in advan...

WPF Auto search combobox item

In WPF, when I type some text in combobox, it will highlight the item starting with the text I entered. This highlighting will search the whole text I have entered in the combo box. But instead I want the text search to match only the first letter. How to do this? Sample Code to re-create the problem: XAML: <Window x:Class="ComboTest...

Where should my library deployed into Windows\System32 write logs?

I've developed an IFilter - a library that is to be deployed into Windows\System32. One possible strategy for reporting errors occuring inside it is writing them to a log file. Where should I put that log file so that I don't have problems with permissions and this solution is Vista/Win2k8 acceptable? ...

MySQL - How to ORDER BY RELEVANCE? INNODB Table

I've got about 20,000 rows in an INNODB table called 'cards', so FULLTEXT is not an option. Please consider this table: id | name | description ---------------------------------------------------------- 1 John Smith Just some dude 2 Ted Johnson Another dude 3 Johnathan Todd This guy too...

SQL Server ContainsTable not finding partial matches

I'm trying to use ContainsTable to return a ranked list of results. I have it working fine when it finds a whole word match but its doesnt seem to work for partial words. For example if I search for 'acq' it wont find 'Acquisitions'. I really need it to work with partial matches for it to be useful. Using "Like" is not an option as the...

Searching Keywords into a Text with a hashtable

I would like to search for keywords in a text, I have around 6000 keywords and I need to know what's the best way to do it in PHP. What's the best way to implement a hashtable in php? ...

Creating filterable search

Hello, I was wondering if anyone has any examples or tutorials on how I can create a search area like the one on BuySellAds.com to the left of this page. I like the sliders and how you can select a category and it will automatically update. Also, can this be done with jQuery? thanks for any help/info. ...

Real-World Scheme OOP Programs?

I am working on a sort of "bug finder" for Scheme (R5RS) and I want to try if and how well it would work for object-oriented programming. Therefore I was looking at some of the numerous object systems for Scheme (for example, Tiny-CLOS, Prometheus, and YASOS). Of course, in order to find bugs, I have to have code in which I can search t...

Logging Search Results in a Rails Application

We're interested in logging and computing the number of times an item comes up in search or on a list page. With 50k unique visitors a day, we're expecting we could produce 3-4 million 'impressions' per day, which isn't a terribly high amount, but one we'd like to architect well. We don't need to read this data in real time, but woul...

How can I index a bunch of files in Perl?

I'm trying to clean up a database by first finding unreferenced objects. I have extracted all the database objects into a list, and all the ddl code into files, I also have all the Java source code for the project. Basically what I want to do (preferably in Perl as it's the scripting language that I'm most familiar with) is to somehow i...

Enterprise Search web service in SharePoint

Hello, I have a question to Enterprise Search in SharePoint. I use this functionality over web service (.../_vti_bin/search.asmx). There are some standart set of attributes (Name, Title...) returned as search result. For more attributes I created new "Metadata Property Mappings" and started full crawl, to be sure attributes in index wil...