search

PHP: How do I search in an unindexed array?

I have an array that is formatted like so (this example has 5 keys): [0]: HTTP/1.1 200 OK [1]: Date: Wed, 10 Feb 2010 12:16:24 GMT [2]: Server: Apache/2.2.3 (Red Hat) [3]: X-Powered-By: PHP/5.1.6 [4]: etc.. The array keys sometimes alternate, as one may be omitted. How can I search for the array with "Server: ..." in it, and if it exi...

Wildcard Search PHP

Hi, I dunno really what its called but basically this is what I want to represent this as a string in PHP : <div class="post" id="post-*Any Content*"> How could i do this. edit: sorry for not explaining it very well guys, basically I'm going to be checking to see if a string contains this text, where any content is basically anything...

JavaScript form to search engine redirection problem. [Solved]

Ok, so I'm trying to make a form that will take given text and direct you to a chosen search engine with the text as the query. I'm having problems getting the javascript to (re)direct. What's interesting is that if you make the submit input a button and do onClick="searchForm" and then click on it, it will work. But then you can't type...

Compare different search algorithms

In what ways are DFS and Best-first search similar? How are BFS and Best-first similar? To me, to better decribe how DFS and BestFS are similar, it might be easier to point the difference,which is that in BestFS we chose as the next to expand the one that seems closest to the goal using the heuristi function. In almost all other wa...

How do I search within an array of hashes by hash values in ruby?

Hi, I have an array of hashes, @fathers. a_father = { "father" => "Bob", "age" => 40 } @fathers << a_father a_father = { "father" => "David", "age" => 32 } @fathers << a_father a_father = { "father" => "Batman", "age" => 50 } @fathers << a_father How can I search this array and return an array of hashes for which a block returns...

Is there a list of most common english words for indexing text for search?

Is there a free available list of the most common english words to remove from text for creating a search index? ...

MS Search Server - ConfigurationException

Im getting a ConfigurationException whenever i try to perform QueryService.Query or QueryService.ExQuery. Same goes when i do GetSearchMetadata(). I can however do a GetPortalSearchInfo() and Status() without problems. Any hint of what can cause the problem? ...

MySQL Optimization

Hello .. In my database of 5 million records .. Structure of the table: CREATE TABLE IF NOT EXISTS `music` ( `id` int(50) NOT NULL auto_increment, `artistname` varchar(50) NOT NULL, `songname` varchar(50) NOT NULL, `duration` varchar(6) NOT NULL, `url` varchar(255) NOT NULL, `server` int(5) NOT NULL, PRIMARY KEY (`id`), ...

How do I query a database field but ignore the HTML markup?

We have a field that contains HTML markup for formatting on the website, but we need to query just the text that should render on screen, not things like CSS tags, tag names, property names, etc. Is there a way to ignore the markup right in the SQL query or Stored Procedure? If there are ways to do this, will we have performance issues ...

HOW TO SERACH for string IN two mysql TABLES WITHOUT fulltext indexes

hi i have this query to searching for some string in two tables(download , news) and return column called title from that record. but there is something wrong with the code . its just showing result from second table in the code . and if i change tables place in the code again i'm getting result from second table ! $sql="SELECT downl...

Order YouTube videos by date?

Im having problems getting the results sorted by date in my search... In the API reference it says i have to use: videoSearch.setResultOrder(google.search.Search.ORDER_BY_DATE); But when using this, my script stops working... The code: function OnLoad() { // Create a search control searchControl = new google.search.SearchC...

Displaying search results dynamically as use interacts with controls

Hi - I have a website and want to display search results dynamically meaning that as the user interacts with controls and selects options, the search results are populated in realtime - i.e. the user doesnt need to click the search button. The data is stored in a MySQL relational data base. Now I know this is likely to lead to a large ...

django- search for list box elements and palce the selected elements in another box

I want a search for my list box.The selected items should then be shifted into another box.The same functionality is provided by django admin where you add user permissions.Any idea how I can implement it in my app? Thank u !! ...

C++ Recursion problems <confused>

I am working on understanding recursion, and I think I have it down alright... I'm trying to build a search function (like the std::string.find()) that searches a given string for another string for example: Given (big) string: "ru the running cat" search (small) string: "run" I'm trying to return a index for the where the wor...

Searching for membership in array of ranges

As part of our system simulation, I'm modeling a memory space with 64-bit addressing using a sparse memory array and keeping a list of objects to keep track of buffers that are allocated within the memory space. Buffers are allocated and de-allocated dynamically. I have a function that searches for a given address or address range with...

Does F# documentation have a way to search for functions by their types?

Say I want to know if F# has a library function of type ('T -> bool) -> 'T list -> int ie, something that counts how many items of a list that a function returns true for. (or returns the index of the first item that returns true) I used to use the big list at the MSR site for F# before the documentation on MSDN was ready. I could ju...

Searching asp.net Code

I want to search my asp.net pages and user controls to see which master page and base class they use. I mention search because we are re-factoring a large project and we need to track progress on the code conversion. I know I can pull this information individually but I need a automated and repeatable procedure. ...

SLI Systems search get parameters for limit

I was wondering if anyone had used the SLI Systems search system on their website. I was wanting to know the parameters for adjusting the limit of products returned per page in a search. For example this site. ...

how to find out my result table in multiple table search?

hi i'm searching in two tables for a string . $sql="SELECT download.title FROM download WHERE download.title LIKE '%$search%' UNION SELECT news.title FROM news WHERE news.title LIKE '%$search%' OR news.text LIKE '%$search%' "; how can i find out what table the records I have found are from? ...

Ignoring content with the Drupal 6 search module

I have some content that I do not want the Drupal search module to index: for example, I do not want drupal search module to search my webform data. How can I do that? ...