text-search

How does the Google "Did you mean?" Algorithm work?

I've been developing an internal website for a portfolio management tool. There is a lot of text data, company names etc. I've been really impressed with some search engines ability to very quickly respond to queries with "Did you mean: xxxx". I need to be able to intelligently take a user query and respond with not only raw search re...

.NET: Programmatically search for text in a PDF file and tell the page number?

There are some tools which allow to extract the whole text portion of a PDF file in order to full text index the PDF. What I need is a way to search for certain strings and, if thery were found in the PDF file, return the page number? Thanks, Stefan ...

how to search for a word in a book programmatically?

I need to develop an application that can search through a book and list out all the pages and lines that contain a given keyword. For books that are split up in some other way, such as a bible which is split up by chapter and verse; they would be able to search for all verses that contain a certain keyword. Or alternatively, search wi...

WPF combobox highlight

Hi, In WPF, when I enter some text in combobox, it will highlight the item starting with the text I entered. This highlighting will search the whole text i have entered in the combo box. But instead i want the text search to match only the first letter. How to do this? Actually, I want to make TextSearch.Text to be always first characte...

how to find the first word in the sentence having 'w' in it.

how can i find the first word in my sentence having 'w' character.This character can be present anywhere in my word.example of sentence "Hi xyzwy! what are you doing here?" So the result should be "xyzwy". ...

Fast file search algorithm for IP addresses

Question What is the fastest way to find if an IP address exists in a file that contains IP addresses sorted as: 219.93.88.62 219.94.181.87 219.94.193.96 220.1.72.201 220.110.162.50 220.126.52.187 220.126.52.247 Constraints No database (e.g., MySQL, PostgreSQL, Oracle, etc.) Infrequent pre-processing is allowed (see possibilities...

Text search with soft hyphens in Internet Explorer

We are using soft hyphens in a text paragraph on a web page to improve the layout, since the number of long words in the text is unusually high. Unfortunately, this causes the text search (Ctrl+F) in Internet Explorer to fail. It does not find the words with soft hyphens, unless the soft hyphens are entered at the correct place in the se...

Python - Library that compute relevance score for text search

My idea is to achieve an execution similar to the MySQL MATCH / AGAINST keywords. Do you know a python library that compute relevance score for text searches? If not satisfying answers I am going to use a Python connector to MySQL. ...

efficient algorithm for searching one of several strings in a text?

I need to search incoming not-very-long pieces of text for occurrences of given strings. The strings are constant for the whole session and are not many (~10). Additional simplification is that none of the strings is contained in any other. I am currently using boost regex matching with str1 | str2 | .... The performance of this task is...

Search Text In Files Using PHP

How to search text in some files like PDF, doc, docs or txt using PHP? I want to do similar function as Full Text Search in MySQL, but this time, I'm directly search through files, not database. The search will do searching in many files that located in a folder. Any suggestion, tips or solutions for this problem? I also noticed that, ...

App engine - easy text search

I was hoping to implement an easy, but effective text search for App Engine that I could use until official text search capabilities for app engine are released. I see there are libraries out there, but its always a hassle to install something new. I'm wondering if this is a valid strategy: 1) Break each property that needs to be text...