search

SharePoint Search on default Masterpage

Hi, I am trying to enable the search bar on my default master page. In the source code of the master page there is the following: <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/> </asp:ContentPlaceHolder> In the render of the page in design...

Count number of results for a particular word on Twitter

To further a personal project of mine, I have been pondering how to count the number of results for a user specified word on Twitter. I have used their API extensively, but have not been able to come up with an efficient or even halfway practical way to count the occurrences of a particular word. The actual results are not critical, ju...

Using Microsoft Search Server 2008 with asp.net/vb.net

I'm installing Microsoft Search Server 2008 express with a view to indexing some content for an intranet application. Having not used Search Server before, i am looking at ways of my asp.net app (.net 3.5) querying the search server. I'm just starting to look into Search Community Toolkit to see if it is relevant to what i want to achi...

Is it ok not to have a button for a search box?

I was wondering if it was ever ok not to have a submit button (Ok, Go or Search for example) near a search box in Web pages. I know that hitting enter is much faster and that it will perform the search. However, is it an accepted convention for the average non tech savvy user or only for the tech community? For example, the search box...

alternate way to trigger reverse-i-search without pressing ctrl+r in bash

The reverse-i-search facility in bash is useful, but it is unlike most other bash commands in that it seems to be bound to a keybinding (Ctrl-R). How can a user trigger this facility using an alias or typed-in command instead? ...

How do you get your Fulltext boolean search to pick up the term C++ ?

So, I need to find out how to do a fulltext boolean search on a MySQL database to return a record containg the term "C++". I have my SQL search string as: SELECT * FROM mytable WHERE MATCH (field1, field2, field3) AGAINST ("C++" IN BOOLEAN MODE) Although all of my fields contain the string C++, it is never returned in the search resu...

How to search for all methods in a project that return implementation of Collection interface?

I've been reading Josh Bloch's 'Effective Java 2nd Edition'. Item 43 states 'Return empty arrays or collections, not nulls'. My question is how can I search for all methods in a project that return an implementation of java.util.Collection interface? IDE that is used is Eclipse, but any way of finding the right result is acceptable, e.g....

PostgreSQL - tree organization

I'm working on a project wich requires a tree of categories, organized as id, parent, title table. Which are the best ways to retrieve category and its subcategories(and a full tree, if root categories have parent=0) in Postgres? I'm looking for a pure database solution, but if there is a way for Ruby and PHP - it will be great too. The...

Regular expression (glob) search tree

Anyone know how one might adapt a search tree to handle limited regular expressions? The task is, given a file name, find all nodes matching that file name. Nodes may contain usual file name globs (* and ?). Obviously, since this is a search tree, speed is of the essence. EDIT: I should add that the most important case for speed is the ...

Artificial Intelligence Search Question

Hello, everybody. I am working on a university timetable scheduler project. Mainly, I am using taboo search, but I want to ask: In general search, you can explore all neighbors of the current state and then take the best state - according to a fitness or evaluation function, - but in such a project, generating all neighbors will make p...

How do I do a full-text search search of flat files with Perl?

We have a Perl-based web application whose data originates from a vast repository of flat text files. Those flat files are placed into a directory on our system, we extensively parse them inserting bits of information into a MySQL database, and subsequently move those files to their archived repository and permanent home (/www/website/a...

How to design an efficient algorithm for least upper bound search

Let's say you have some set of numbers with a known lower bound and unknown upper bound, i.e. 0, 1, 2, 3, ... 78 where 78 is the unknown. Assume for the moment there are no gaps in between numbers. There is a time-expensive function test() that tests if a number is in the set. What is an efficient way (requiring a low amount of test() c...

What is the most efficient (read time) string search method? (C#)

I find that my program is searching through lots of lengthy strings (20,000+) trying to find a particular unique phrase. What is the most efficent method for doing this in C#? Below is the current code which works like this: The search begins at startPos because the target area is somewhat removed from the start It loops through the ...

what is the best way to get an approximate number of search results from a query?

to describe it some more, if i have an image map of a region that when clicked, a query is performed to get more information about that region.my client wants me to display an approximate number of search results while hovering over that region image map.my problem is how do i cache? or get that number without heavily exhausting my serve...

How can I implement a boolean tag search in SQL?

Given a table of items, a table of tags and a join table between them, what is a good and efficient way to implement queries of the form: p1 AND p2 AND ... AND pn AND NOT n1 AND NOT n2 ... AND NOT nk I am using SQL. So to find all items that match all tags p1...pn and none of n1...nk? Is there a good "standard" solution for this? ...

IFilter dll works on Windows Desktop Search, but not on SharePoint 2007

I have written an IFilter dll that returns text from my application's file format. I registered it on my local system, and Windows Search correctly returns results with it. I registered it on my SharePoint 2007 server, rebooted, and it doesn't seem to find anything inside the file. Documentation says that all I should have to do is to...

database suitable for matching strings with regex

Hello. I have n regexes. On input a string i have to find all the regexes that this string matches against. This is normally an O(n) operation: SELECT regex FROM regexes WHERE 'string' RLIKE regex Now I wonder, what's the fastest way to do this ? Are there database, structures or storage systems that are optimized to do such an operat...

Is Full Text search the answer?

OK I have a mySQL Database that looks something like this ID - an int and the unique ID of the recorded Title - The name of the item Description - The items description I want to search both title and description of key words, currently I'm using. SELECT * From ‘item’ where title LIKE %key% And this works and as there’s not much in...

What's the optimal solution for tag/keyword matching?

I'm looking for the optimal solution for keyword matching between different records in the database. It's a classic problem, I've found similar questions, but nothing concretely. I've done it with full text searches, joins and subqueries, temp tables, ... so i'd really like to see how you guys are solving such a common problem. So, let...

Using Perl, how do I show the context around a search term in the search results?

I am writing a Perl script that is searching for a term in large portions of text. What I would like to display back to the user is a small subset of the text around the search term, so the user can have context of where this search term is used. Google search results are a good example of what I am trying to accomplish, where the cont...