search

How would one use Lucene to help implement search on a site like StackOverflow?

I've asked a simlar question on Meta StackOverflow, but that deals specifically with whether or not Lucene.NET is used on StackOverflow. The purpose of the question here is more of a hypotetical, as to what approaches one would make if they were to use Lucene.NET as a basis for in-site search and other factors in a site like StackOverfl...

Sharepoint 2007 - .mht files do not show up in search results

I have a bunch of .mht files in the document library and they don't seem to be indexed. I have checked - .mht is in the File Types list in Central Sdmin -> SSP and also there's an entry for it in the DOCICON.xml. But .mht files are still either not being indexed or do not show up in the search. How can I fix this? Thanks! ...

How to copy marked text in notepad++

I have a part of HTML source file that contains strings that I want to select and copy at once, using the regex functionality of Notepad++. Here is a part of the text source: <option value="Performance" >Performance</option> <option value="Maintenance" >Maintenance</option> <option value="System Stability" >System Stability</option> ...

If anyone has used Sphinx Search engine before...do you know if it can join words?

When you search "Stack Overflow", Sphinx will not bring up results that match "Stackoverflow" That's because Sphinx indexes "Stackoverflow" as one word...whereas the query is two words. Does anyone know how to fix this? (like Google...they can join the query !) ...

C++ - Checking for 3 in a row

I've got this 3 x 3 array of char that's supposed to represent a tic-tac-toe board, and before, I would use a bunch of "if" statements to see if there were 3 in a row. ... if ((board[0][0] == board[0][1]) && (board[0][1] == board[0][2])) { ... } ... I realized that this is a lot of typing, and quite error-prone, so is th...

How Search Engines Crawl the websites ?

I am creating a Multilingual web site and I use a resource manager for each language. when user select a language all pages use the selected resource bondles. as entire sites only is available in one language,how search engines crawl the other languages ? or does search engine crawl optional provided languages ? ...

MySQL full-text search in Rails?

When I added search functionality to my first Rails app, I used Sphinx, after reading that using MySQL's built-in fulltext search was a bad idea. While Sphinx works well, it's a bit complicated to set up, and I feel there's too much overload for the simple searching functionality I require in my app. Searches aren't performed very often...

in_array but needle is array, what the alternative for it

I have 2 array, the value will be from database, below is the case example: $arr1 = array(1,2,3); $arr2 = array(1,2,3,4,5,6,7); What I want to do is to check if all values in $arr1 is exist in $arr2. the above example should be a TRUE while: $arr3 = array(1,2,4,5,6,7); comparing $arr1 with $arr3 will return a FALSE. Normally I use...

Erlang neighbour search

I have couple of interconnected computers. On every machine there is running Erlang node and I'd like to communicate with each other passing Erlang terms (peer-to-peer style). However nodes on other computers are listed in nodes() only after I net_adm:pinged them etc. Is there any way how to find out what all nodes (with the same cookie)...

Is there a open-search solution for python?

lucene-like would be preferred. thanks ...

What are the fastest full-text search algorithms/APIs (open source or commercial)?

Are there any silver bullets out there for searching medium sized amounts of text data (hundreds of gigabytes)? Don't really care if it's commercial or open source. I should add that I need it to be C++ or C based. ...

Google Search Appliances versus Microsoft Enterprise Search (FAST)

I am .NET developer and I have been working with various search providers but Google Search Appliance/Mini has been always the best fit for requirements when implementing enterprise level search. I have not worked yet on Microsoft Enterprise Search so I would like to hear developers experiences on it. These days I am getting a lot Enter...

Best way to support wildcard search a large dictionary?

I am working on a project to search in a large dictionary (100k~1m words). The dictionary items look like {key,value,freq}. Myy task is the development of an incremental search algoritm to support exact match, prefix match and wildcard match. The results should be ordered by freq. For example: the dictionary looks like key1=a,valu...

What is the algorithm to search an index for multiple values?

This is actually a real problem I'm working on, but for simplicity, let's pretend I'm Google. Say the user searches for "nanoscale tupperware". There aren't very many pages with both words... only about 3k. But there are ~2 million pages with "nanoscale" and ~4 million with "tupperware". Still, Google finds the 3k for me in 0.3 seconds....

LinkedIn-Style Search Feature & Functionality in jquery+ajax

I would like to implement a search box in my website that is similar/identical to that used on LinkedIn i.e. category search, auto-complete dropdown, etc. I would like this to be jquery + ajax based. Is their any code available for a LinkedIn-type search feature? If not, does anyone have good advise on how to re-create this serach funct...

Do you know of any search algorithms for searching through source code?

Hello everybody. My question regards the existence of a search algorithm for searching source code. In my project, I will have to implement an application that will search through a repository of source code (through a lot of source code files). All the files are from previous projects done within the company. We think that implementing...

Search database returning results to gridview via sqldatareader

I am trying to create a search page, this allows the admin to search through the entries in the database by certain criteria, such as province (like state but diff country) Here is the code I have so far. The problem is that I am not getting any errors. But I am also not getting any results. The page just posts back and returns to the b...

An efficient cache in Delphi

I'm creating a cache which is going to contain records in Delphi 2007. Each record contains a String, 2 Dates and a value. Type MyRecord = Record Location : String; Date1 : TDateTime; Date2 : TDateTime; Value : Double; End; There are no guarantees on what the maximum size of the cache will be. It is highly likely tha...

How to search a varbinary field in SQL Server?

I have an application where I allow users to upload files, mainly PDF and Word documents. These files are stored in a varbinary field in the database. For what it is worth, I need to have these files available regardless of how the user is accessing the application, via Web or Windows Forms application or any other Presentation layer. I...

How to get distinct values of a managed property through SharePoint search?

I am building a phone catalog of my organization (an AJAX application which accesses the search.asmx web service). I'd like to show a list box where the user could select a department (which is stored in managed property Department). To fill the list box with values, I need to somehow select all the distinct values of that property. Is ...