search

google or other search engine's SQL code (or other DB-specific code)

Has someone seen the actual SQL ( or bigtable or whatever ) code that actually makes the search in some major search engine like google, yahoo, etc? I'm just curious. (please don't close, let me reformulate if it's not acceptable as a SO question) ...

Advanced Search using CheckboxList

I have an advanced search that I need to implement for a website using C# and SQL Server. Here is the basic idea: User selects required search criteria - city, state, zip User can select optional search criteria. This search criteria is a checkbox list. The checkbox list is databound to a list of criteria from sql server. The search ha...

Sql Server: Implementing a multi-table search

I'm trying to figure out the best way to search a number of different tables for a simple term. I have two solutions in mind 1) Create a "Search table" with the following structure and create triggers on the tables I would like to search to enter the information into the search table ID || String to check against || ...

Bing Performance

Bing has been around for more than 2 months now.There has been some positive reviews about bing. Some experts in search areas have pointed out that Bing results are more relevant than Google's since its index is still not cluttered with unnecessary garbage. Does these claims have any truth behind them ? ...

What is the best way to do a search in a large file?

I'm looking to apply a KMP (or similar) search to a large file (> 4GB). I'm expecting this to give me problems though.I can't copy it all to memory because there isn't enough space there. My question is, what is the best way to go about doing this search? Should I simply create a FILE* and do the search directly in the file, should I c...

PHP - Array search for multiple values

I need to get the keys from values that are duplicates. I tried to use array_search and that worked fine, BUT I only got the first value as a hit. I need to get both keys from the duplicate values, in this case 0 and 2. The search result output as an array would be good. Is there a PHP function to do this or do I need to write some mul...

How to combine two search results effectively?

I'm programming a site in PHP/MySQL that gets search results for products via API from an external site. This site also will have it's own products and the owners of the site want the search results to be inter-connected. If someone searches for VIDEO, ordered by date then the results should be all in order regardless of the source it...

Search engine woes

I have been trying to make this search engine for a MySQL database. Taking in user input is no problem, database querying is also fine. One thing I need to figure out is this: I am a string in the database How do I match the input "AM", but keep the same case? There are PHP functions like str_ireplace or preg_replace/eregi_replace...

c# Find a file within all possible folders?

I was wondering how I could use c# to find a specific file (example cheese.exe) within all possible directories? And then store the path to the directory it found it in? Any help is wonderful :) ...

Why and how does the googlebot use my website's search engine?

Looking through my search logs from time to time, I notice that by far the biggest user of my search engine is the google-bot. What gives? Is it looking for content that might not be directly accessible through navigation? If so, how does it know which words and phrases to look for (they're surprisingly relevant). Does it check the most ...

How to get list of all search keyword in Lucene?

I need the list of all search keyword(term) i.e. indexed in lucene index. I googled for it. but, i didn't get the solution. Is it possible to get the list of all search term? ...

Implementing a fast and relevant search for my site (C# ASP.net)

My site has a database of widgets, each widget has a name and description. I want to implement a fast and relevant search system on my site, how do I do this? As a side note, I also implemented tags on those widget. Here is how I implemented (Tell me what you think): Table widgets: has unique id plus other info for a widget Table tag_w...

binary sequence detector

Does anyone know of an optimized way of detecting a 37 bit sequence in a chunk of binary data that is optimal. Sure I can do a brute force compare using windowing (just compare starting with index 0+next 36 bits, increment and loop until i find it) but is there a better way? Maybe some hashing search that returns a probability that the s...

google search integration

Hi I've a webpage and want to integrate google search into that page. Can u people guide me how to do that? Actually i tried with the code given by the google. like this <form action="http://www.duckyvideos.com" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-9481442241155955:7j2htu-qsi5" /> <...

How to abandon a long-running search in System.DirectoryServices.Protocols

I've been trying to work out how to cancel a long-running AD search in System.DirectoryServices.Protocols. Can anyone help? I've looked at the supportControl/supportedCapabilities attributes on RootDSE and they don't contain the 1.3.6.1.1.8 OID so I think that means it doesn't support the LDAP CANCEL extended operation as defined here:...

Which of these two DB designs will lead to faster queries?

Which will be faster, what will the answer depend on: 1) Looking up a numerical id in a DB table A, and then querying another table B for all instances of that numerical ID. where table B is likely to be 100x larger. 2) Querying table B directly using for the string in question. Now that I write this I think intuitively solution 1 is ...

Lucene Error While Reading binary block : java.io.EOFException

Hi, I am getting java.io.EOFException while reading a binary block from lucene index. I am storing java object as byte-array in lucene index field and reading it when hit occurs. Here is stack trace : Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io....

Making Javascript-search-function fast

Hello everyone, I made a little search-function with javascript to look for a string in a table: There are "tr"s that simply contain a number as an id and there are "tr"s that contain "childNode+idOfParentNode" as an id (e.g.: <tr id="1"> ... </tr> <tr id="childNode1"> ... </tr> Now I want to look through the table, see if a giving s...

Microsoft Search Server Express - how to move all the databases?

I have just installed the excellent Search Server Express 2008 onto one of our servers. As a default all the databases created are put into locations on the c: drive. Does anyone know where all the databases are located and how they can be safely moved. ...

Creating a .bashrc function to search through all files for a particular string

I have a useful little command that searches through all files & subdirectories for a particular string: find . -name "*" -exec grep -il "search term" {} \; I'd like to turn this into a function that I can put in my .bashrc and call from my shell without needing to remember the whole thing, but I can't get it working. This is what I h...