search

Best way to create a search function ASP.NET and SQL server

I have an SQL database with multiple tables, and I am working on creating a searching feature. Other than having multiple queries for the different tables, is there a different way to go about said searching function? I should probably add that a lot of my content is database driven to make upkeep easier. Lucene will not work for th...

Odd issue with textbox and ASP.NET

This code was working properly before, basically I have a master page that has a single text box for searching, I named it searchBox. I have a method to pull the content of searchBox on form submit and set it to a variable userQuery. Here is the method: Public Function searchString(ByVal oTextBoxName As String) As String If Master...

How do you run Lucene on .net?

Lucene is an excellent search engine, but the .NET version is behind the official Java release (latest stable .NET release is 2.0, but the latest Java Lucene version is 2.4, which has more features). How do you get around this? ...

SVN Repository Search

Is there any good software that will allow me to search through my SVN respository for code snippets? I found 'FishEye' but the cost is 1,200 and well outside my budget. ...

How to highlight occurrences of a search term in text in Visual Studio?

How do I make all occurrences of a phrase (search term) in a file to be highlighted in the VS code editor? ...

Getting counts for a paged SQL search stored procedure

I've written a paged search stored procedure using SQL Server 2005. It takes a number of parameters and the search criteria is moderately complex. Due to the front-end architecture I need to be able to return the number of results that would come back without actually returning the results. The front end would then call the stored proce...

Passing form data from masterpage to other pages ASP.NET

I have asked a similar question before, but I didn't have a firm grasp on what the problem I was encountering was. My problem is I cannot get the data from a TextBox residing on the master when the page changes. Here is what happens: MasterPage with TextBox and Button. Data is entered into the TextBox and Button is clicked. Form's ac...

Most efficient way to search the last x lines of a file in python

I have a file and I don't know how big it's going to be (it could be quite large, but the size will vary greatly). I want to search the last 10 lines or so to see if any of them match a string. I need to do this as quickly and efficiently as possible and was wondering if there's anything better than: s = "foo" last_bit = fileObj.readl...

Proximity Search

How does an application perform a proximity search? For example, a user types in a postal code, then the application lists all the businesses within 20 miles ordered by proximity. I want to build something like that in php and mysql. Is this approach correct? 1) get the addresses for locations I'm interested in and store in my databa...

How can I search a particular column in Perl?

I have a text file which contains some data. I am trying to search for EA in ID column only and prints the whole row. But the code recognize all EA and prints all rows. What code I should add to satisfy the condition? Thanks Again:-)! DATA: Name Age ID --------------------- KRISTE,22,EA2008 J**EA**N,21,ES4567 JAK,45,EA2008 The code...

Help me write a binary search for boundary values (extracting sub lists)

Let's say I have an array of lots of values (C++ syntax, sorry): vector<double> x(100000); This array is sorted such that x[n] > x[n-1]. I would like a function to retrieve an array of all values in the range [a, b] (that's inclusive). Some interface like: void subarray(const double a, const double b, vector<double> &sub) { ... ...

Zend Framework - Is there a script to index static content from Views?

Hi, I'm wanting to add a search box onto my website - which is built using Zend Framework 1.6 - using Zend Search Lucene. The majority of my content is static, and held within Controller Views. Does anyone have a script that can index content from the views, and add them into the Lucene search database so I can search them? Many than...

Fastest way of finding object in collection with coordinates near point

I have collection of objects. Each object represents a coordinate range (ie, a block). What I want is to find the object near another coordinate in a given direction. Is there a way to do this without traversing the whole collection all the time? ...

Indexing Multiple Tables in Lucene

I want to use lucene.net to index records in our database. The records are stored in several different tables and tied together through a records table. Would it be better to index each table separately and tie the search results together in code, or should I tie the records together coming out of the database and place them all in one...

How do I programatically set the SharePoint's site collections Search Center property?

I have a site collection and I want to set the search center value to be the same as another site collection. The site collection is created in code, so I need to be able to set the property after the site collection has been created. How can I do this programatically? ...

Multi line search and replace tool

I am looking for a tool to replace multiple lines through out a project. For example: #include "../DiscreteIO/Discrete.h" #include "../PCI/pci.h" #include "../Arinc429/ARINC429.h" with #include "../PCI/pci.h" #include "../DiscreteIO/DiscreteHW.h" #include "../DiscreteIO/Discrete.h" I have tried two tools that work for this type of ...

What is the best way to store and search through object transactions?

We have a decent sized object-oriented application. Whenever an object in the app is changed, the object changes are saved back to the DB. However, this has become less than ideal. Currently, transactions are stored as a transaction and a set of transactionLI's. The transaction table has fields for who, what, when, why, foreignKey, a...

SharePoint searching external database

We're looking at doing a MOSS 2007 site which will have a fairly dynamic component (an external product catalog). The external produces will be stored in a database (not managed by SharePoint) and all interaction will occur via Web Parts. Is it possible to configure the SharePoint search to index the textual content and the external dat...

Is there an Open-Source Web Search Library that does not use a Search Index File?

Hi, I'm looking for an open-source web search library that does not use a search index file. Do you know any? Thanks, Kenneth ...

Is Lucene.Net suitable as the search engine for frequently changing content?

Is Lucene.Net suitable as the search engine for frequently changing content? Or more specificically, can anybody give a subjective opinion on how quickly lucene.net indexes can be updated. Any other approaches to searching frequently changing content would be great. We’re developing a forum. Forum posts will be frequently added to the...