search

Looking for VisualStudio2008 "Find/Search" utility that shows results in context

I'm looking for a VS2008 AddIn or utility that improves on "Find In Files". The main feature I'm looking for is to show the names of the methods that contain the matching string, preferably in a TreeView. For example, if I did a search for variable "string1", I'd like to see something similar to the following: File1.cs method1 ...

Drupal Search Behavior

I looked into the DP 6 search API and did not see a hook that would let me alter the search keys before they are passed into the search module to execute the search. I want to do keyword expansion on the string that the user entered. For instance, if the user entered 'foo', I want to execute a search for 'foo' and 'bar'. There should ul...

Synonym style text lookup and parsing

Hi all, We have a client who is looking for a means to import and categorize a large amount of textual data. This data has to be categorized and it's been suggested that the easiest way to to do this would be to look at the description field and try to match the words held there to see if a category can be derived for that particular r...

How to find if a number is contained in an array of number ranges in java

I have an array of java objects. Each object stores two longs that define a number range. I already have a guarantee that for all the objects in the range, the number ranges don't overlap. I want a quick of finding a particular object in the array, given a number which may (or may not) fall within one of the number ranges defined by...

How do I match an exact number using SharePoint search

In SharePoint (MOSS 2007) search, I need to match an exact number such as 2009482842 and nothing else. How do I get search to only return hits on the exact number? Edit: I originally thought this was only with the SQL FullTextQuery from code, but it is also a problem when searching from the portal itself. Edit: This was fixed by upgra...

search scanned/pdf/faxed documents through C#

Hi All, we have a requirement to search documents(some them are scanned, pdf and faxed) from a given directory based on some parameters( like orderID,Order date which are text fields inside a document). Can any one know how do the same using C#? Thanks, ...

File Body Search

Hello, Can anyone recommend a good tool for searching though the body of files (office, powerpoint ect). It needs to be integrated as part of a PHP site. Alternatively, any server side applications that could be used for creating indexes of the search terms. thanks ...

Any common algorithms for indexing / searching through my data?

Hi all.. I know that searching in itself is a huge field, which also seems to be my problem. I just don't know where to start. Here's the scenario: I got a lot of shops which employs a lot of people and which has a lot of different products for sale. I need to create a single-textfield searchoption for my site. This textfield should s...

Windows SearchPath function

I am using the following to search for a file defined as a macro DB_CONFIG_FILE_PATH_1. wchar_t filename[100]; SearchPath( L".\\", DB_CONFIG_FILE_PATH_1, NULL, 100, filename, NULL); If the file is in C:\ directory, it is found. But, if the file is in one of its sub-directories the function doesn't find it. Can some explain how to sea...

How can I search for simple if statements in C source code?

I'd like to do a search for simple if statements in a collection of C source files. These are statements of the form: if (condition) statement; Any amount of white space or other sequences (e.g. "} else ") might appear on the same line before the if. Comments may appear between the "if (condition)" and "statement;". I want to ex...

Array Searching code challenge

Here's my (code golf) challenge: Take two arrays of bytes and determine if the second array is a substring of the first. If it is, output the index at which the contents of the second array appear in the first. If you do not find the second array in the first, then output -1. Example Input: { 63, 101, 245, 215, 0 } { 245, 215 } Expecte...

Scroll UITableView so that the header isn't visible

I've got a UITableView with a UISearchBar as the tableViews.tableHeaderView. Just like the new Mail.app, Notes.app, etc. in 3.0. I want to hide the SearchBar until the user drags it in his sight. My attempt only works when there're a couple of items in the tableView, so that the tableView actually wants to scroll. I call this in loadVie...

Developing a crawler and scraper for a vertical search engine

I need to develop a vertical search engine as part of website. The data for the search engine comes from websites of specific category. I guess for this I need to have a crawler that crawls several (a few hundred) sites (in a specific business category) and extract content and urls of products and services. Other types of pages may be i...

How to find a match within a single term using Lucene

I am using the Lucene search engine but it only seems to find matches that occur at the beginning of terms. For example: Searching for "one" would match "onematch" or "one day a time" but not "loneranger". The Lucene doc says it doesnt support wildcards at the front of a search string so I am not sure whether Lucene even searches inter...

How to exclude searching specified fields using Zend Search (Lucene)

I've built a search index using the PHP Zend Framework Search (based on Lucene). The search is for a buy/sell website. My search index includes the following fields: item-id (UnIndexed) item-title (Text) item-description (UnStored) item-tags (Text) item-price (keyword) seller-id (UnIndexed) seller-name (Text) I want the user to sear...

plist or sqlite

I have to store a huge amount of data on IPhone then sort and search it as per requirement. Can anyone suggest to me which of SQLite or plist should I use? I was thinking of using SQLite. Which of plist and SQLite takes less processing time in searching and sorting? If some one has some reference guide then let me know. Regards ...

How to use Windows Search Service instead of the old indexing service to index files?

In the past I had the indexing service installed on a Windows Server 2003 and used it to index files for my website. I did this by executing an OleDbCommand with a query and a connection string. How do I accomplish the same thing with the new "Windows Search Service" (Windows Server 2008) by using VB.NET? Does this work the same way so ...

How is a search in a Database realized?

Hi I'm trying to make a search function to my website : unfortunately i don't know how ? is a the LIKE enough for a search function ? e.g: SELECT * FROM Employees WHERE (Title Like 'Title%') or are there more Professional ways ? ( e.g. regular Expressions ) ...

Keyword search, multiple tables, PHP and Mysql, Which Join to use?

Hi I have 3 tables event, location, event_location. Event can have multiple locations. Location table has lattitude, longitude, hasGeocode fields. so for keywords "hello world" a simple query to Event table becomes Select * from event where keywords like '%hello%' OR keywords like '%world%' but if if the user has entered their loc...

Sharepoint Search doesn't work

Platform: MOSS 2007 on server 2008 Sharepoint is working etc... Problem: When you search for something, it doesn't find anything, no errors. Authentication and permissions look fine. Search service is up and running. What could be the problem? Any checkpoints I might have missed, any bad configurations I should check, etc...? ...