search

Optimal LIKE search in SQL

I have a parts database that I am going to be constantly querying for a quoting system. The parts database has 1,400,000+ records in it. The users are just going to start typing part numbers, which they expect the system to be able to find after only a few characters, so I need to be able to do a wildcard search, something like: SELEC...

Remove scope dropdown from OSSSearchResults.aspx in SharePoint MOSS

When searching in SharePoint the results are returned to a page called OSSSearchResults.aspx. This page has a scope dropdown for the search i.e. Site:Departments How can I remove this scope so that the whole site collection is always searching, irrespective of the site I am within? All the best ...

How does Sphinx store null fields, and how does this affect performance?

I'm thinking about using asking sphinx to index many fields (in the hundreds), many of which will be null. My question is how much having many null fields will affect performance? This situation arises not from having incredibly denormalized data, but from requirements on the search interface and what can be searched. Basically I will b...

Can I programatically open, search and return results in a browser from multiple websites?

Currently I have a bookmarked list of websites that I look for content on, and open them in a new window, in tabs, and search for the string that I want to find. Is there any way to do this programatically, ending up with a browser window containing the results pages of the sites? There's around 20 of them. I'm running Safari 3 on Mac ...

C# multiple string match

I need C# string search algorithm which can match multiple occurance of pattern. For example, if pattern is 'AA' and string is 'BAAABBB' Regex produce match result Index = 1, but I need result Index = 1,2. Can I force Regex to give such result? ...

Search all tables in Oracle DB

I am using Oracle 10g at the moment. I want to search through all the tables for a certain word or phrase. How would I go about searching all the tables for the word of phrase? Cheers ...

System.IO.Directory.GetFiles returns different result than Windows XP Search Companion

Hi, I am using this statement to find all files recursively: fileNames = System.IO.Directory.GetFiles(path, "*.*", System.IO.SearchOption.AllDirectories); The total number of files that are found is sgnificantly lower than wehen using Windows XP Search Companion. This is not caused by hidden files, I checked that. It looks like s...

String search

What is the best way to search strings for something like forum? i seen horrible string search and typically get worse the more strings you use rather then better. I also may implement a title search so if the way to search title that is better then a body of string i'd love to hear that too ...

Is it possible to have a custom webpart listen to default SharePoint search box?

SharePoint has a search box by default at the top of the Portal. I want my WebPart to be able to intercept that search and provide search results. Is this possible, and if so any tips or links on how to do this? ...

How to combine 2 or more querysets in a Django view?

Hi, I am trying to build the search for a Django site I am building, and in the search I am searching in 3 different models. And to get pagination on the search result list I would like to use a generic object_list view to display the results. But to do that i have to merge 3 querysets into one. How can i do that? Ive tried this: resu...

How can I scan multiple log files to find which ones have a particular IP address in them?

Recently there have been a few attackers trying malicious things on my server so I've decided to somewhat "track" them even though I know they won't get very far. Now, I have an entire directory containing the server logs and I need a way to search through every file in the directory, and return a filename if a string is found. So I tho...

Complex Searching with NHibernate

Hi, I am curious about what methods do you use for complex searching with NHibernate ? I am using Ayende's What is yours ? Thanks for your advices and answers. ...

String matching

Hello, Let me explain the problem: Let's say I have a library, the library contains many books, each book contains chapters, each chapter contains string (and the string begins and ends with dot "."). The sequence again, library -> book -> chapter -> string. I extracted the strings from books, let's call them "books strings". I have a...

Using Boost's graph breadth_first_search() to find a path in an unweighted, undirected graph

I'm using an adjacency_list graph, with undirected and unweighted edges. I need to find a shortest path between vertex u and vertex v. Should I use breadth_first_search() starting from u? When reaching v, how do I obtain the path, and how do I stop the search? thanks! ...

Eclipse exclude folders from search

Hi, I'd like to exclude certain folders (and all their subfolders) from searching within Eclipse, is this possible? Thanks, Don ...

Create regex from glob expression

Hi, i write program that parse text with regular expression. Regular expression should be obtained from user. I deside to use glob syntax for user input, and convert glob string to the regular expression internally. For example: "foo.? bar*" should be converted to "^.*foo\.\w\bar\w+.*" Somehow, i need to escape all meaningful cha...

What are good APIs or search method for tagging objects into categories and searching them?

i want to tag many user created content and have multiple types of categories (project tags, desc tag, style/inspiration tag etc). I seen horrible search engines where the more words you use the worse your result is and i dont want that with tagging. What are good APIs or search method for tagging objects into categories and searching t...

How to make Lucene match all words in query?

I am using Lucene to allow a user to search for words in a large number of documents. Lucene seems to default to returning all documents containing any of the words entered. Is it possible to change this behaviour? I know that '+' can be use to force a term to be included but I would like to make that the default action. Ideally I woul...

PHP Get Source and Search for Word

I need help i want to code a program that search for a word inside the source code. Here a Example in Python: import urllib2, re site = "http://stackoverflow.com/" tosearch = "Questions" source = urllib2.urlopen(site).read() if re.search(tosearch,source): print "Found The Word", tosearch ...

A logical error with my code

Hi guys I wrote this code and its always showing the same results why? The code is a searching method. using System; using System.Collections.Generic; using System.Text; namespace CArraySe { class Program { class CArray { private int[] arr; private int upper; private int numEl...