search

branch and bound

Can someone explain the branch and bound search technique for me? I need to find a path with the smallest cost from any start node to an end node of any random graph using branch and bound search algorithm. ...

How to search specific parts of sites with yahoo boss?

I want to to include in my search results only parts of few different sites. eg. yahoo.com/blog/, yahoo.com/groups/ and live.com/developers/ How can I do that? I can't use &sites=yahoo.com/blog/,yahoo.com/groups/,live.com/developers/ because it will display results for whole yahoo and live.com domain. Any suggestions? Thanks! ...

vim — How can I search buffers?

I am looking for some command like: :b1!g/something_here/ where I supposedly search for a word "something_here" in the buffer "b1". How can I do it? ...

Unable to search effectively in Screen

I know that you should be able to search in Screen by C-a / or C-a ? or C-a s or C-a r However, none of the commands work for me. I have the following .screenrc. My .screenrc markkeys h=d:j=h:k=t:l=n # to change the escape key from ^Aa to # NB ^n to move btw Screens escape ^Tt # I want to use Vim's navigation keys bind...

How do you Index Files for Fast Searches?

Nowadays, Microsoft and Google will index the files on your hard drive so that you can search their contents quickly. What I want to know is how do they do this? Can you describe the algorithm? ...

Efficient way to search a stream for a string

Let's suppose that have a stream of text (or Reader in Java) that I'd like to check for a particular string. The stream of text might be very large so as soon as the search string is found I'd like to return true and also try to avoid storing the entire input in memory. Naively, I might try to do something like this (in Java): public b...

Need a creative idea: How can I search for all web sites that use a certain javascript library or widget?

All Search engines I know of search text. I want to search for example for all the sites that use jQuery. Any creative idea on how to do that? ...

How to find related items by tags in Lucene.NET

My indexed documents have a field containing a pipe-delimited set of ids: a845497737704e8ab439dd410e7f1328| 0a2d7192f75148cca89b6df58fcf2e54| 204fce58c936434598f7bd7eccf11771 (ignore line breaks) This field represents a list of tags. The list may contain 0 to n tag Ids. When users of my site view a particular document, I want to dis...

Google Code Search-like source code indexer and visualizer

I'm looking for a way to search through our subversion repository or just packaged source code. Are there any downloadable servers/tools like Google Code Search to index source code (preferable with support of version control systems like svn) and allow us to search in it? Is there any tool that will index documents too? ...

Zend_Search_Lucene on Leopard: problem

Leopard 10.5.6 Macbook Zend 1.6, Apache 2, PHP 5.2.5 I cannot seem to do indexing, using Zend_Search_Lucene api. Building or opening indices on generates the following exception message: string(30) "Wrong segments.gen file format" However, the indices/segments files were scp from a working version of my site and I've chmoded them all...

Nested prohibit/require operators in Lucene search queries

I am using Lucene for Java, and need to figure out what the engine does when I execute some obscure queries. Take the following query: +(foo -bar) If I use QueryParser to parse the input, I get a BooleanQuery object that looks like this: org.apache.lucene.search.BooleanQuery: org.apache.lucene.search.BooleanClause(required=true,...

Exact phrase search using Lucene.net

I am having trouble searching for an exact phrase using Lucene.NET 2.0.0.4 For example I am searching for "scope attribute sets the variable" (including quotes) but receive no matches, I have confirmed 100% that the phrase exists. Can anyone suggest where I am going wrong? Is this even supported with Lucene.NET? As usual the API...

SQL to search objects, including stored procedures, in Oracle.

I need to write some sql that will allow me to query all objects in our Oracle database. Unfortunately the tools we are allowed to use don't have this built in. Basically, I need to search all tables, procedures, triggers, views, everything. I know how to search for object names. But I need to search for the contents of the object. i....

Fixed footer obscure firefox search match

I have a site with a fixed footer at the bottom of every page. The content area above the footer has a appropriate margin to ensure that content does not hide behind the footer when scrolling down. However, when a simple text search if performed in the browser (firefox) the search term is usually hidden behind the footer as the page nor...

searching for pages explaining codes

Google does not allow searching for ! !-f becomes -f What search engines find pages with !-f? ...

building a web crawler

im currently developing a custom search engine with built-in web crawler. for some reason im not into multi-threading, thus so far my indexer was coded in single-threaded manner. Now i have a small dilema with crawler im building, can anybody suggest which is better, crawl 1 page then index it, or crawl 1000+ page and cache then index? ...

How to search for matches with optional special characters in SQL?

I have a problem with a search query I am using my data contains names and information that has apostrophes in various forms (HTML encoded and actual). So for example I would like an alternative to this: SELECT * FROM Customers WHERE REPLACE(LastName,'''','') LIKE Replace('O''Brien,'''','') This is just an example, what I want is a...

Optimizing a simple search algorithm

I have been playing around a bit with a fairly simple, home-made search engine, and I'm now twiddling with some relevancy sorting code. It's not very pretty, but I'm not very good when it comes to clever algorithms, so I was hoping I could get some advice :) Basically, I want each search result to get scoring based on how many words ma...

Coldfusion - What's an efficient way to search an array of structs?

I have a semi-large (hundreds of records) 1-dimensional array in Coldfusion. Each item in the array is a struct with several properties. I want to search the array for a struct that has a specific "name" property. I know that for an array of string values I could use Java methods like so: <cfset arrayIndex = myArray.indexOf("WhatImLooki...

How to Search Through a C# DropDownList Programmatically

I am having a hard time figuring out how to code a series of "if" statements that search through different dropdownlists for a specific value entered in a textbox. I was able to write code that finds a specific value in each dropdownlist; but, before this happens, I need to add an "if" statement saying, "if dropdownlist doesn't contain ...