search

Search Keywords using LINQ

If I have a text field that contains say a title and i have a list of keywords, how can i search the title checking for (n) numbers of keywords in the title? So if my title is "Baking a chicken, bacon and leek pie" and the user searches for "chicken bacon turnip" i'd like to return the above recipe. essentially i'd like to say that if ...

How to do weighted MySQL match search

Hi guys, so we can use mysql to search for full text indexed fields via the MATCH keyword... my question is...is there a native way to do this in which certain column's index is given greater weight than the other So for instance if I search using the indexes title, keywords, and description...is there a way to make entries in title a...

PHP & MySQL - Pagination display problems.

For some reason my search script will only display the first set of results for the first page but when I click on the pagination link to the next page the results that are generated from the search script will not be displayed how can I correct this problem? Here is my PHP & MySQL pagination code. $x = ''; $construct = ''; if(isset($...

Configuring Sphinx to index a dynamic set of tables

I'm in the process of setting up a new WordPress 3.0 multisite instance and would like to use Sphinx on the database server to power search for the primary website. Ideally, this primary site would offer the ability to search against its content (posts, pages, comments, member profiles, activity updates, etc.) as well as all of the other...

An algorithm to check if a vertex is reachable.

Hi! Is there an algorithm that can check, in a directed graph, if a vertex, let's say V2, is reachable from a vertex V1, without traversing all the vertices? ...

How does google know if I type in redflower.jpg I mean Red Flower?

I'm curious what the programming terms or methodology is used when Google shows you the "did you mean" link for a word that is made up of multiple words? For example if I type in "redflower.jpg" It knows to break that up into Red Flower Is there a common paradigm for doing that sort of operation? Would a Lucene search give you that? th...

Autonomy | IDOL search API

Can someone point me to a tutorial or API resource for Autonomy IDOL search? Thanks. ...

Three20 Search Scope

Hey there, I'm using Three20 and I've got the standard search mechanism working. TTTableViewController* searchController = [[[TTTableViewController alloc] init] autorelease]; searchController.dataSource = [[[MyDataSource alloc] init] autorelease]; self.searchViewController = searchController; self.tableView.tableHeaderView = _searchC...

algorithms problem in uniform cost solution

I am doing the unifrom cost search algorithm. I am getting my solution slightly larger than actual. The number of expanded nodes are coming larger than actual. I used this algorithm: Get the initial node and put it into the priority queue.The P.queue will itself arranges the nodes in it according to the cost. Lower cost node will come ...

Twitter's Radius Search

On my website I would like to include a radius search for user profiles, similar to what Twitter is doing on their advanced search with "Near this places" http://search.twitter.com/advanced I currently have a US zip code database with lat & lon data, but the site is now expanding globally. What's the best approach to adding local proxim...

search engine question on web

Hi, does anyone know how to implement a best pratice on SEO? One of the example is: if the user types "brand new canon camera" then I want the system to find a sequence of string in the database that contains "new", "cannon", "camera". It is ok with or without the word "brand". However if the user types "HP laptop DV1000" and i want th...

Java - Search for words having more than 1 capital letter

Hi People, Just need your help regarding a task to search in Java. I need to read a line from a file and make a list of all the words that have more than 1 capital letter in them. For example if the line is : There are SeVen Planets In this UniverSe The result should be : SeVen and UniverSe I am able to read the line by splitting it ...

Globbing with python rpm module?

The following code uses the rpm module to query the version of an installed package. What I would like to do is to query a set of packages specified by a glob, for example searching for "python*" rather than "python". Is this possible using the rpm module? 1 #!/usr/bin/python 2 3 import rpm 4 5 ts = rpm.TransactionSet() ...

How can I do case insensitive string search with Linq and SQL Server?

Here is my current code for searching tags: public JsonResult TagSearch(string term) { if (term == null || term == "") return Json(""); var tags = (from t in _session.All<Tag>() where t.Name.Contains(term) select t.Name).Take(6).ToArray(); return Json(tags); } How could I do case insensiti...

Search 2 fields in a Drupal content type

Hello. I need a simple search form on my Drupal site but I can't figure out the best way to get it done. Basically I have a content type with a couple of different fields and I want my form to search in both the title and the body and then return a list with the title its picture and the stripped body. I have tried with Views and it wo...

Is there a way to customize search rules in jqGrid in particular column?

Hi! I have jqgrid : jQuery("#list").jqGrid( { url : 'ajax/get', datatype : 'json', mtype : 'POST', colNames : [ 'Date', 'ID' ], colModel : [{ name : 'date', index : 'date', ...

How to search in JTree/xml

I am creating a JTree from an xml file. Q: I have to implement a search functionality . I have done it using JTree and I have observed that its too slow and my tree is quite heavy. Q. Please suggest if I can implement using xml file ...

Using searchlogic in Rails to find records by created_at year

I'm working on a Rails app wherein I want to be able to search for records created in a given year using the Searchlogic gem, but I can't figure out how to have Searchlogic only search by year. I tried this in my search form: <%= f.date_select(:created_at_equals, :start_year => 2010, :end_year => 2015, :discard_day => true, :discard_mo...

Excel: Find value in column(s)

I've got an Excel spreadsheet with multiple columns of different lengths, each filled with unsorted numbers. Each column has a header. Is there a way to determine which column(s) contain that number? For instance, I'd love to be able to do =WHICHCOLS( 123, A, Z ) and have Excel tell me columns [B, C, and K] contain cells with a value ...

How to implement search layer for Ruby on Rails site?

We are implementing a product review site using Ruby on Rails. Search is a core component of the user experience. We need to make searches fast and relevant. Should we use Lucene or another open source search layer? Should we use Google's search API and index against only our site? Or should we develop proprietary search functionali...