search

SQL Search based on multiple values without Intersect

I am trying to search for items (members) that match 0 or more field values in a simple table. I have a solution using INTERSECT, but would like to know if there as a better/simpler solution. Simplfied Scenario: A user will select 0 to 3 fields as search criteria. For each chosen field, the user will select (combobox) a value. These...

Zend_Search_Lucene failing to return documents

Hi, I am struggling with a bug/problem that I am having trouble with when using Zend_Search_Lucene. Now I have 2 indexes that I search one that is parsed html pages/text that I use the Zend_Search_Lucene_Document_Html::loadHTML() function to read the contents and add to one of the lucene indexes. The other index I manually create a lu...

How do I use advance Google search to sort image by most recent?

How do I use advance Google search to sort image by most recent? Google image search doesn't have options to sort by date. Example: I would like to sort the following by most recent images: http://images.google.com/images?um=1&hl=en&tbo=1&tbs=isch:1&sa=1&q=wallpapers+for+desktop&aq=1&aqi=g10&aql=&oq...

How to design a RESTful URL for search with optional paramaters?

If I have to create a URL in my RESTful web service, which would be used by my clients to search all businesses by their fields where the fields are optional, what would the URL look like? A business can be search by their name alone, name and phone number or name, phone number and contact e-mail. ...

Memory leak during repeated lucene query searches?

Hi all, Basically, I simply want to do many searches on a given lucene index. Therefore, I made a class Data with final 'analyzer', 'reader', 'searcher' and 'parser' fields, (all properly initialized in the constructor). The class also provides a 'search' method to search the index. This is all shown in the code below. The problem is...

VIM: how to add search/replace command to vimrc and map to a shortcut

I have two search/replace commands that I find myself running in vim fairly often to clean up html code so I can copy/paste it online. The commands are: :%s!<!\&lt;!g :%s!>!\&gt;!g I wanted a way I could map both of these commands to be run together ... I did some searching for how to use the :map commands in vimrc, however, I can't ...

How to retrieve all email messages over *** characters long?

I always had trouble updating blogs i wrote, but it occured to me that whenever people ask me something I can give really long replies that could easily become articles. However there`s not a feature in GMail or any other mail app for that matter, that enables me to search by message length. Will I have to write a script to retrieve a...

Search a Batch of Files for a Line of Text

I have a Mercurial Repository for a code project and I want to search all of the files, in all directories and sub-directories, for a given string. What is the best method, or program to do so? I can conduct this search in Ubuntu Linux or a Windows environment. ...

Grep failing with Emacs (windows), and GnuWin32 Grep

Hi, I've downloaded and installed the GnuWin32 tools, and added the grep executables to the Emacs bin. I've also, for what its worth, added the GnuWin32 bin folder to my Path variable. Problem is though, when I try and run with suggested grep commands, I always get: Grep exited abnormally with code 53 at Wed Feb 24 17:16:12 For the ...

Implementing Google search operators

Google currently uses keywords such as site: or is: in searches (the second example is from Gmail). I'm trying to develop a similar system and am wondering how best to go about identifying and handling those terms. For simplicity's sake, assume an OO language is being used (Ruby, Python, Java, C#, et al). Currently, my plan is to have a...

DLL Search Path only partially searched

I just set up a new faster computer to be my development station. I'm having a problem with a DLL not begin found when I run an application I'm working on using Delphi 6 Pro, but I don't think the problem is with Delphi. Keep in mind, I have the exact same setup as far as directories and tools on my old computer and on that computer th...

What is an efficient search algorithm to provide auto-completion?

I've got a list of 10000 keywords. What is an efficient search algorithm to provide auto-completion with that list? ...

datetime searching using sub-sections of the YYYY-MM-DD HH:MM string

[MySQL/PHP] My table has a date column of datetime format. All records are of the YYYY-MM-DD HH:MM:SS variety. MySQL queries like SELECT record FROM table WHERE date > '1941' AND date < '1945' work nicely. MySQL queries like SELECT record FROM table WHERE date > '1941-03-01' AND date < '1945-01-30' also work nicely. But what about if ...

Java Object Question

Not quite sure how to word this question. I am wondering if there is a method to check certain parts of a custom java class to see if it matches a certain criteria. Such as this public Name(String forename, String middlename, String surname) And then when an array of instances of that class are created say, Name[] applicants = new N...

How do search engines conduct 'AND' operation?

Consider the following search results: Google for 'David' - 591 millions hits in 0.28 sec Google for 'John' - 785 millions hits in 0.18 sec OK. Pages are indexed, it only needs to look up the count and the first few items in the index table, so speed is understandable. Now consider the following search with AND operation: Goog...

How to keep search term for additional pages when paginating

Hi all, I'm using a pagination method for displaying search results returned from my database. I'm creating an Html.ActionLink for each extra page, and what I'm wondering is, how do you put the string that was searched into the ActionLink? Below is part of my partial view that I'm populating a div with. It comes after the results so the...

Trying to write to binary plist format from Python (w/PyObjC) to be fetch and read in by Cocoa Touch.

I'm trying to serve a property list of search results to my iPhone app. The server is a prototype, written in Python. First I found Python's built-in plistlib, which is awesome. I want to give search-as-you-type a shot, so I need it to be as small as possible, and xml was too big. The binary plist format seems like a good choice. Unfort...

Design Pattern for Drilldown / Filtered Search

I'm looking to build a powerful search feature for a site, similar to NewEgg's drilldown search, e.g., http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&amp;N=2010150014%201035507776&amp;name=7200%20RPM I'm working with a variety of objects similar to products which have different criteria. Can anyone recommend a good design fo...

Search block does not work in Drupal.

Hey, I just uploaded a test site on the following location : www.betterclassofleaders.co.cc/whackk I am using a customised search block (customised through search-theme-form.tpl.php) but it does not work. If you type in a search term and hit Enter it will go to the search result page but without actually performing the search. Searchin...

Search for text with php

How would I scan a directory for a specific line of text and list all matching files with php? Thanks. ...