search

wpf datagrid cell content changes, when it's not supposed to

Hi, I have a textbox which, when typing in it, selects the Item in my WPF datagrid with the matching item, however, it changes the first item as well to what is typed in the textbox before going to the matching item in the grid. I'm not sure how that is possible? Can someone help find what's wrong? The search is only performed on the...

Using Umbraco search with tags

I have setup umbraco search xslt package. In my xslt I am searching by pagename, title, description and now, tags. The tags property is a document type property of the type, 'Tags'. The search xslt is below; <xsl:variable name="searchFields" select="ps:getListParameter(string(//macro/searchFields), '@pageName, title, description, tags'...

Microsoft Search Server programming issue

Hello everyone, I am using Microsoft Search Server 2008 based on SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I want to know whether there are any ways (some open API or web services or some hacking ways) to retrieved the crawled page content? The crawl source is web site. thanks in advance, George ...

searching classes in an array

I have an array (Items) which holds lots of instances of a class (Item). Item has 2 properties, a Group and an ID. there may be more than Item in the array(Items) that have the same Group and ID properties. How do I "search"/get the first Item which matches a specified Group and/or ID Something like: Item.getbygroup([group]) which re...

C# Binary Search on 2 indexes

Hello, I have an object with attributes ; startIndex, endIndex I am able to do binary search based on startIndex by implementing the following : int IComparable.CompareTo(object obj) { Repeat r = (Repeat)obj; return this.startIndex.CompareTo(r.startIndex); } However with the same Repea...

Count records returned in a search - ROR

I'm trying to get Rails to return a count of the records returned in a search (search results found); I can get Rails to count the total amount of records using Inventory.count However when I enter @advsearch.count it blows up. Any ideas? The code below is my controller: def new @advsearch = Advsearch.new end def creat...

Searching data in a array(list)

Hello everyone, I have a ArrayList containing Attributes class Attribute{ private int id; public string getID(){ return this.id; } private string value; public string getValue(){ return this.value; } //... more properties here... } Well I filled the ArrayList with like hundreds of those attributes. And I want ...

How can I use Verity to index and search database content in ColdFusion 9?

Hi, everyone. I have tried to use ColdFusion 9 to build search engine in my site. The key is Verity which I read it is the best tool to do the indexing and searching in my database content. But I search around with no luck about any tutorial to tell me how to done this, even a tutorial is missing, or I think I don't found it. I am usi...

Using VB6 to search for existence of DataFile in Outlook

Hi, I am wanting to write an Add-In for Outlook 2003 which, when Outlook is opened, search for the existence of a datafile called DMSDataStore and if it doesn't exist will install the datafile. I have managed to create the Add-In using VB6 and it runs when I open Outlook. However I haven't found the best/easiest way to search for the ...

Magento Catalog Search (filter by id)

I'm writing a custom plugin thing which needs to search the product catalog. Based on some sample code I saw somewhere (possibly this site), I came up with this working prototype: $searcher = Mage::getSingleton('catalogsearch/advanced') -> addFilters(array('name' => $_REQUEST['name'])) -> addFilters(array('sku' => $_REQUEST['sku'...

What is a good web based API to retrieve words related to a given word?

I'm looking for something like Google Sets, but in API form. Google Sets doesn't allow scraping, nor does it have an API. Example, I'd like to search for "electronics" and have it return "cd player, television, telephone, computer, etc...". Possibly, like Google Sets, have it take a couple words. A good example of the results I'm loo...

SERPs: Google Scrapers

Hello all, How do sites that offer SERP tracking work? I mean, under the Google ToS - scraping is forbidden on search results. I have seen huge sites, I won't name any, offer SERP tracking services (paid) and these guys have not been spotted or Google choses to ignore them! Why? Clearly not a programming question, hopefully its ok as...

How to search CVS repository ?

The company which I work for uses CVS as source control and we have an intranet application(Source forge) which expose the repository i.e. we can see the source file using that interface but it does not provide any search facility where I can search for the code snippets for the given keywords. I want to write an application which can s...

script to filter files

I have a directory that have a lot of files, i want to loop to each file and open it search for a specific word and then i the word found copy the file into another directory. Thanks ...

building a query string with jquery and checkboxes

Hi I'm building a search form with several filter options on the results page. It's a basic search form, results show in an friendly url such as: domain.com/resuts/country/age/type/ The filters are simply checkboxes which on click, should reload the page with a query string to identify what has been checked/unchecked. (there is no sub...

Is it possible to 'store search criteria' and the reuse it at some other time?

I have a classifieds website where users may search ads. I wonder if I can somehow store search criteria and whenever the users wishes, reuse that search criteria to make another search again, exactly the same... ? This would make it easier for users to search for a specific car for instance, and not have to fill in all the details suc...

How to store search criteria or search results?

I have a php classifieds website (mostly) and I am currently using MYSQL as a database. Later on I will use SOLR or maybe Sphinx as a "search engine". I want to make it possible for users to view "results" of searches they have made before, but I don't know where to start... How is this done? Currently I have a form which is filled i...

How to search using the LIKE syntax and % WILDCARD % across multiple tables.

How can you use mysql and the like/wildcard syntax across multiple tables, would it be as simple as: (SELECT * FROM `table1` WHERE `name` LIKE '%tom%') AND (SELECT * FROM `table2` WHERE `name` LIKE '%sam%') Not tested, just thinking about it. ...

How does Java efficiently search jar files for classes?

Suppose I have 500 jar files linked to my program totaling over 500 MB (size of all the jars, not each one) and my program makes a call to a class located in one of them. How does Java search through jars for a class, and what is the efficiency of this? O(n)? O(log(n))? ...

PHP, search and delete files from directory - performance

Hi, I want to delete cache files in a directory, the directory can contain up to 50.000 files. I currently I use this function. // Deletes all files in $type directory that start with $start function clearCache($type,$start) { $open = opendir($GLOBALS['DOC_ROOT']."/cache/".$type."/"); while( ($file = readdi...