search

Search recursively in text files in a directory with java ?.

I need to search a text in all the files of a directory and subdirectorys any clever idea ? ...

Comparing date fields to "Today" using SharePoint search SQL?

I am converting some of the queries I have from CAML to SharePoint search SQL and ran across an issue when trying to compare my Date metadata fields to "Today." Specifically, I have the following part of a CAML query that uses : <Leq><FieldRef Name="Article_x0020_Publish_x0020_Date"/><Value Type="DateTime"><Today /></Value></Leq> Whe...

Recommendations for a simple search engine for bag of words?

Any recommendations for small, lightweight, bag of words search engine? I have a set of 'documents' that are each basically a small bag of arbitrary words. Given a new document, I need to get a list of 'similar' documents along with some weight for how similar they might be. Documents are likely to be small.. a couple paragraphs at mos...

Searching a database of names.

I have a MYSQL database containing the names of a large collection of people. Each person in the database could could have one or all of the following name types: first, last, middle, maiden or nick. I want to provide a way for people to search this database to see if a person exists in the database. Are there any off the shelf products...

Simplest script for Greasemonkey or Stylish to select “100 Results” from the “Results per page:” dropdown menu in Google’s Advanced Search page?

Can anybody come up with the simplest script for Greasemonkey or Stylish to select “100 Results” from the “Results per page:” dropdown menu in Google’s Advanced Search page? ...

How to determine the order of substrings in an NSString?

Hi, I wanted to know if there is any (easy) method to find the order of a given array of substrings in an NSString? I have a large block of text and a few substrings. I'm only interested in the order that the substrings first appear in the text. So if the text was "can you tell me you are working late if you can" and the substrings w...

how does lxr (linux kernel code cross reference) work internall?

Where can I find an article to introduce the architecture of the LXR? I am very curious about it. How are the indexing and query served? Thanks, ...

tag searching with many to many fields in php

i'm trying to do a search engine for a briefing system. I'm using a many to many relationship style setup with 3 databases representing the relationships. comms_briefings is where the data is stored for the briefings search_tags is where the tags are stored briefings_tags is where the relationship is formed i have this code already w...

Drupal: Create custom search

I'm trying to create a custom search but getting stuck. What I want is to have a dropdownbox so the user can choose where to search in. These options can mean 1 or more content types. So if he chooses options A, then the search will look in node-type P,Q,R. But he may not give those results, but only the uid's which will be then themed ...

searching for and ranking results

I'm trying to write a relatively simple algorithm to search for a string on several attributes Given some data: Some data: 1: name: 'Josh', location: 'los angeles' 2: name: 'Josh', location: 'york' search string: "josh york" The results should be [2, 1] because that query string hits the 2nd record twice, and the 1st record once. ...

Rails - What Should I use for Search?

I have a couple specific needs for my search and I'm interested to get people's opinions on what search approach makes the most sense. Based on my explanation below, would you recommend that I use basic sql queries? Or step up to a more advanced search solution, like Sphinx? I have two models that I want to search in: products and v...

Distinct department names-Sharepoint search

I need to get distinct department values where scope is people. I tried with Sharepoint full text query but this does not seem to return distinct values. Therefore, the only thing i can do is to get distinct values from the datatable. But this approach slows down the application when there are huge number of people belonging to a specifi...

Is there a Google Search API designed for server-to-server communication?

I.e., I want my web server to initiate a Google Search, manipulate the results, and send the result back to the user's browser. I know there's an AJAX API designed for searching client-side with Javascript, but is there a non-AJAX API designed for server-to-server communication (like there is for maps)? ...

Java: from Lucene Hits to original objects

I'd like to implement a filter/search feature in my application using Lucene. Querying Lucene index gives me a Hits instance, which is nothing more than a list of Documents matching my criteria. Since I generate the indexed Documents from my objects, which is the best way to find the original object related to a specific Lucene Doc...

iPhone xcode search path for device vs simulator?

I am confused at this setting (Project -> Edit Active Target). The Search Paths can differ based on the SDK setting (simulator vs device). But if I provide both simulator and device paths, for lets say the Frameworks path, then i get linker errors. But it seems if I only provide the proper path for whichever SDK i have selected, then it...

Is there a way to get emacs's anything to do "fuzzy" searches?

I'm not sure if fuzzy is the correct way to phrase this, so allow me to explain what I want to do. Often times, I'm looking for files that I know are within a particular directory in my local SVN working copy, and I have an idea what directory they're in, but don't want to think of the precise path or there may be several copies of it i...

Get Altavista number of hits

Hello, I need a program that -Given a search query- uses altavista and returns the number of hits for this search query. I prefer java but other languages are fine with me. Is there an API that can be used for this purpose? ...

Searching an array of different strings inside a single string in PHP.

I have an array of strings that I want to try and match to the end of a normal string. I'm not sure the best way to do this in PHP. This is sorta what I am trying to do: Example: Input: abcde Search array: er, wr, de Match: de My first thought was to write a loop that goes through the array and crafts a regular expr...

how to implement search for 2 different table data?

Using mysql and PHP I am using MATCH AGAINST clauses already. It is working fine against individual tables. Like if i want to search in shops table. No problem. What i want is to be able to search and DISPLAY results from different tables in a single result page. Eg if i type "chocolate clothes" i may get 4 results as follows: Sho...

Trying to find groups of letters with regex

Hey everyone, I need to find 1 or more defined groups of characters enclosed in parentheses. If more than one group is present it will be separated with a hyphen. Example: (us) (jp) (jp-us) (jp-us-eu) I've figured out how to find the group if the string only contains one group: /\(us\)|\(jp\)/ However, I am baffled when it comes ...