search

Search keyword highlight in ASP.Net C#

Hi all, I am outputting a list of search results for a given string of keywords, and I want any matching keywords in my search results to be highlighted. Each word should be wrapped in a span or similar. I am looking for an efficient function to do this. E.g. Keywords: "lorem ipsum" Result: "Some text containing lorem and ipsum" Des...

What is Alef Hamza?

I found this one, in the Find box (as Search criteria) of the document viewer. What is supposed to match? ...

Linq to Lucene error: "Classes must define at least one field as a default search field"

I have the following attributes applied to my linq to sql class: [Document(MetadataType = typeof(SomeObjectMetadata))] public partial class SomeObject { } And this is the metadata code: public class SomeObjectMetadata { [Field(FieldIndex.Tokenized, FieldStore.Yes, IsKey = true)] private object ProductId { get; set; } ...

How to find trending tags out of long search string

Hello, I would like to have a trending tags in my website according to searches users made. The problem I'm not seeing an simple solution for is how to easily extract the important terms out of a search string. For example, many users might search for "visual studio" with different purposes. For example, "visual studio 2010", "visual s...

Programmatically run a search on the App Store?

Is it possible to open the App Store app from within my app and run a search? I'm looking to see if there's an appstore:// type URL that I could use, in the same way that mailto: and sms: open Mail and SMS respectively. Does anyone know if this is possible? Edit - more info: I've been trying using UIApplication's openURL: method, pas...

Outline searching

IDE: Delphi 1 16-bit (Yeah it's old, no I can't afford a newer version or the hardware needed to run it. Besides I'm just learning Delphi so it serves the purpose fine.) I've loaded a TOutline with names (to represent an address book). They're in sorted order. I want to be able to search the outline. Possible searches: the whole na...

Code Challenge: 2D Array Search

Ok this one is like my previous array searching challenge but with a twist. You must build a function to search one 2d array (or suitable equivalent in your language) of 32-bit integers for another, and return the X and Y index that the second array exists within the first. If the second array does not completely and contiguously exist ...

sharepoint content are not searchable...why?

I create a form form infopath. on that form i took the text boxes with corresponding fields. then i embed the form in sharepoint. then in my document library , clicked "new", filled up data. then i can see the data columns wise in my document library. let say i fill data as "Lalit" when i tried to search it , it gave me message . "No re...

Multithreaded A* Search in Java or Lisp or C#

Is there a good way to do a multithreaded A* search? Single threaded is fairly easy, as given in (for example) Artificial Intelligence: A Modern Approach, but I have not come across a good multithreaded version. Assume a sane language like Java or C# or Lisp where we have thread pools and work blocks, and of course garbage collection. ...

Faster search for files in Netbeans

Is there an existing plugin or tweak that speeds up the "Go To File" search in Netbeans ? Compared to Eclipse, Netbeans search is way too slow specially if one has multiple large size projects. I know I can use Ctrl+O for "Go To Type" but often I need to search for other file types like XMLs, property files etc. across thousands of file...

How do I find the revision that changed a line in my code using TortoiseSvn?

I have one line of code which seems commented. Basically the thing I want to find is the revision that changed this line in the code. So, is it possible to see changes in code related to a specific keyword in TortoiseSvn Log? ...

Sphinx without using an auto_increment id

I am current in planning on creating a big database (2+ million rows) with a variety of data from separate sources. I would like to avoid structuring the database around auto_increment ids to help prevent against sync issues with replication, and also because each item inserted will have a alphanumeric product code that is guaranteed to ...

Relevant search results from a MySQL table

What's the best way of generating super relevant results from a MySQL table? I have a list of sites in a table with a title, description and tags. How can I set up a SELECT query/search function in PHP that will find user typed keywords in all three of those columns, and whilst remaining as quick as possible keep the following in mind:...

SQL question regarding searching for data from multiple tables

I have 2 tables containing information that i want to search for, a main table, and a comments table. The main table contains timestamps, subjects, etc. While the comments table holds comments for the individual records in the main table. Its basically a simple ticket system. I need to be able to search for things in the main table and ...

Echo SQL query on new page with PHP

I know this is probably a really amateur question, but I can't figure this out and I don't know much about PHP or MySQL. So I have a really simple script that basically allows a user to submit a couple lines of text and their zipcode, then it write it to a database and returns the results on the site. It's a shoutbox essentially. My c...

Free web-based solution for intranet document search engine ?

Hello, Here is the situation : we have to offer a customer with a web-based search engine that will make a search for a given string inside a list of documents whose paths are logged in a database. The supported documents are PDF, Word, Excel, TXT. So we have 2 options : PHP ASP Anyone heard of any good open-source solutions regar...

Java Bing Image Search

Hi All, I have a small application in java which searches images using bing image search. The problem I am facing is that, its getting only first 20 images. May be because when we search on bing.com it populates first 20 images first and then its an infinite scrolling feature. Is there any way to search more than 20 images using bing?...

Searching a C++ Vector<custom_class> for the first/last occurence of a value

Hi, I'm trying to work out the best method to search a vector of type "Tracklet" (a class I have built myself) to find the first and last occurrence of a given value for one of its variables. For example, I have the following classes (simplified for this example): class Tracklet { TimePoint *start; TimePoint *end; int angle...

Get the words ranks from an array

I made this code which has three strings as you see I perform many queries using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace IR { class Program { public static bool Search(string[] stop, string w) { for (int i = 0; i < stop.Length; i++) ...

C#: Snippet extraction based on search term on a single document

I have the text from a PDF document available to me, and I want to display snippets from the text everywhere the user-entered search phrase appears. Say the search term is"iphone", I want to display 200 characters around each iphone word instance in the document. Ideally, the snippet should also start from the beginning of a sentence. ...