search

php/mysql: how to search case insentitively

hello, i have this table in UTF8 (collation is utf8_bin in case it matters). I need to search in it for strings using LIKE '%$searchstring%' . Right now you have to use the exact case in order for the results to show up. Is there a way to make it case insensitive ? Thank you UPDATE sorry, found the answer. ...

How do I automatically rebuild the Sphinx index under django-sphinx?

I just setup django-sphinx, and it is working beautifully. I am now able to search my model and get amazing results. The one problem is that I have to build the index by hand using the indexer command. That means every time I add new content, I have to manually hit the command line to rebuild the search index. That is just not acceptable...

How to filter list using CAML query from a custom search field?

Hi, Background I'm configuring a custom WSS application that focuses around one main list. I want to replace the top sharepoint search box with my custom search. After clicking on search I want to load a page with a webpart presenting the results (basically filtered list using CAML query). I'm using WSS not MOSS so I cannot just confi...

Intelligent file search for windows that can ignore whitespace and search in code?

Does anybody know a Windows based searching tool that is easy to use and is programmer friendly. The functions I am looking for: Ignore white space in search = capable to find myTestFunction ( $parameter, $another_parameter, $yet_another_parameter ) { doThis(); using the query myTestFunction($parameter,$another_parameter,$yet_an...

Search git history for a change in a merge commit

To search for a string that has been added/removed in git history I can do git log -S'some text' This works great except that it doesn't search through merge commits. How do I get the command to include merge commits in the search? ...

java binary search tree

Hello. I have a question about how would I remove a child from a node (root)? Since I can't call remove, if I make the child null, will the children of that child move up? Like, would I just initialize it as null?? Or would I point to the child's child? ...

Repeating Ajax Request

Hey! I'm basically trying to get the existing code below to make a new ajax request every time it finishes so there would be a constant stream instead of it just stopping after a batch. <script type="text/javascript"> $(document).ready(function(){ var twitterq = ''; function displayTweet(){ var i = 0; var limit = $("#twitter-results >...

Java - regular expression finding comments in code

A little fun with Java this time. I want to write a program that reads a code from standard input (line by line, for example), like: // some comment class Main { /* blah */ // /* foo foo(); // foo */ foo2(); /* // foo2 */ } finds all comments in it and removes them. I'm trying to use regular expressions, and fo...

What is breadth-first search useful for?

Usually when I've had to walk a graph, I've always used depth-first search because of the lower space complexity. I've honestly never seen a situation that calls for a breadth-first search, although my experience is pretty limited. When does it make sense to use a breadth-first search? UPDATE: I suppose my answer here shows a situati...

How to restrict drupal search from indexing all content types?

I only want certain nodes to be indexed. The "search config" module claims to have this capability, but it doesn't work. So, how do I either edit the node module to only index certain nodes, or better yet, impliment a module that can do this for me? ...

How to Search Twitter with Drupal and Juitter Module BUT with the search box in the home page.

Hi, I am using Drupal 6.x, I installed successfully Juitter http://drupal.org/project/juitter which is doing exactly what my users need to do, that is Searching Twitter. But to do so they have to navigate to the specific page where the Juitter module is invoked which is something like: ____example.com/juitter and THEN they have to ...

searching within nested list in python

I have a list: l = [['en', 60, 'command'],['sq', 34, 'komand']] I want to search for 'komand' or 'sq' and get l[1] returned. Can I somehow define my own matching function for list searches? ...

how to get Region using Specified string in GoogleMaps in Iphone?

Hi, In my iphone application i am using MKMapView to display any region(i.e Australia) and it is working fine using coordinates(latitude and longitude).But i want to display the region based on the string (i.e Australia) instead of the coordinates. Lets say i click on the TableView with named string as "Australia" and in the next view i...

How to perform an inexact compare in Java beans?

I have a large (more than 100K objects) collection of Java objects like below. public class User { //declared as public in this example for brevity... public String first_name; public String last_name; public String ssn; public String email; public String blog_url; ... } Now, I need to search this list for an obje...

why search field in not displayed at the Iphone MKMapView?

Hi, In My application i am using MKMapview to display the googleMap,but it is not displaying the search field in the Map. I have downloaded the Maps application from the Appstore in my real device and which is disaplying the seach field in the map. can any body have any solution for displaying the search field in the Existing Map, as i...

A fast way for matching DataTable and String Array in C#

I have a DataTable with the following columns: id msisdn status another_column And a string[2][n] array (multi dimensional): {msisdn, status, useless_data} . . . I need start from 0 to n in string array and search for the msisdn field in data table. And update the status column in the datatable from the string arr...

Search posts from a group of blogs

Hi all, I was wondering if there is a way for me to search contents from a selected number of blogs. For Example: Assume I have three blogs Blog1 (has 5 posts) Blog2 (has 6 posts) Blog3 (has 1 post) now I want to implement a search that would search within these 12 (5+6+1) posts. I think I need to use some kind of API for th...

solr + Heritrix

how is it possible to integrate solr with heritrix ? I want to archive a site using heritrix and then index and search locally this file using solr. thanks ...

Adding fuzziness to a lucene query

Is there a simple way to add a fuzziness level to a user entered search query in lucene, I'd like to avoid having to parse their entered text if possible. At present if they enter green boxes I use a multifield query parser with boosts which easily generates the following for example: +(title:green^10 title:boxes^10) +(category:green...

Symfony and Lucene

SOLVED See my answer below. Question left unchanged for anyone else who has trouble with this. I'd like to use lucene (or anything else that could be used withs symfony for searching really) however I can't get the sfLucene plugin to work (says there are no tasks in the namespace "lucene" when i do ./symfony lucene:initialize). What ...