search

combo and custom search

i have a combo and custom search i want that, the combo option also should be included in the search option..means when the search is posted i want the combo option to be in search,for example combo value is type,and search field is name so the search should look for both i need to override the searchfield class?how? ...

Rails - Using Autocomplete with the Scoped_search gem?

I'm using the scoped_search gem for basic search functionality on my site. Scoped search: http://github.com/wvanbergen/scoped_search I'm using the most basic possible implementation of this gem. I'm searching on the name attribute in a user model only. On the frontend, in users/index, the search input is a text_field_tag. <% form_t...

Searching an XML and getting a subset of the nodes as an XML

Given a search term, how to search the attributes of nodes in an XML and return the XML which contains only those nodes that match the term along with their parents all the way tracing to the root node. Here is an example of the input XML: <root> <node name = "Amaths"> <node name = "Bangles"/> </node> <node name = "C"> ...

CakePHP Searchable Plugin of Neil Crookes

I have a problem with the routing while using the Searchable Plugin of Neil Crookes. When I search for something the URL looks like this: http://localhost/search/All/sunshine But now all the other links have the name of the plugin in their URL. For example this: $html->link(__('News', true), array('controller'=>'news', 'action'=>'index...

Java | compare char word in a char array

How do I get the index of a single word (represents in a char array) which can be found in a paragraph (again represents in a char array). the char represents the word char word[] = new char[]{'w','o','r','d'}; and here's the paragraph char para[] = new char[]{'f','g','q','z','y','i','o','p','w','o','r','d'}; I would like to get t...

Trade off between reading from database and memory storage of Java strings using servlets

Hello I'm in the process of setting up a system which will have to repeatedly parse large amounts of text (as a String or StringBuffer - which might be better?) acquired from the a data source. The text will be displayed and may consist of several thousand words and each time the text is parsed, each word may have to checked against a l...

Searching partial strings PHP

How can you search a partial string when typing (not to use MySQL) like the LIKE function in MySQL but using PHP when searching a string, e.g. <?php $string = "Stackoverflow"; $find = "overfl"; if($find == $string) { return true; } else { return false } ?> But that will obviously work won't, but is there a function whe...

Twitter API/Query to search in user profiles?

Is there some way I can search in the profiles of users on Twitter? e.g. User A has mentioned that he is "security, hacking geek" and his website is http://hackme.com Now i want to search in 2 ways: Search for "security" or "hacking" in user profiles and all users including A who have the word security in their profiles will be retur...

Site Search for Website

I have a website developed in php and Joomla.Now i want to add a site search facility that searches on the contents of the particular site.I have no idea what to do? Please help me Thanks in advance ...

how to configure Custome google search in asp.netfor search data.

Hi. I added the custom Google search box to my asp.net (.aspx page) application page, by using the JavaScript.by the way, what is the right procedure for this? I am not explaining my procedure due to lack of time. Also want to know , Is this custom Google search searches inside sql server database of our site or application? if yes th...

How to set position of toolbar in jqGrid?

Hello! I need to set the position of search toolbar to top in jqGrid. How can I do it? Thanks. ...

How do I search an array of objects by attribute (Java)

Hi, Is it possible to search an array of objects in Java by a private attribute with the Array.binarySearch method? I was thinking there must be something similar to the sorting technique, where you create a class that implements Comparator and pass this in to Array.sort, but I can't seem to find anything (maybe there is something wher...

JavaScript - Improve the URL parameter fetching algorithm

I need to get the URL search paramentes in an object, for eg; http://example.com/?a=x&amp;b=y&amp;d#pqr should yield {a:x, b:y, d:1} Below is the method i used to get this, How can i improve this? any suggessions... var urlParamKeyVals = new Array(); var pieces = new Array(); var UrlParams = {}; ...

WordPress: Creating a search form for custom post types

What should I look into if I want to build a form that searches through custom post types, i.e. a completely rebuilt form? Creating the actual form and it's elements is no problem but the next steps brings up a lot of tricky questions such as 1. How can I pass $_GET data to another file maintaining WP's permalinks intact? and 2. How can ...

boost result with sentence matching in solr

Hi, I have a basic solr installation which store articles (title, description, date) If I search for golf club and sort it by date I get every articles with golf or club in the title or description. If I sort it by score I get the one with golf club first. Is there a way to boost those with golf clubs and then get those with either g...

How to get book metadata?

Hi everyone, My application needs to retrieve information about any published book based on a provided ISBN, title, or author. This is hardly a unique requirement---sites like Amazon.com, Chegg.com, and even software like Book Collector seem to be able to do this easily. But I have not been able to replicate it. To clarify, I do not ne...

SQL select for all records that may holds specific value

How to select all records,that may contain specific value that is known, without referring to specific column in SQL expression? For instance, i know,that some unknown column holds value 'xxx' and there are many columns and records in table. Thank you. ...

Measure the run time in pascal program

Hi Please, I need to measure the search time in my pascal program in order to measure the performance efficient.. if there is any function or code to measure the search time? thanks ...

Content Indexer/Indexing Service - database content?

We've been using content indexer successfully for years to provide search. This works well because a significant amount of content is cached on disk. However, I'd like to move away from this paradigm. Is there anyway I can keep content indexer and have it index "pages" stored in SQL Server? ...

Storing DateTime field in lucene document

What is the best way to add datefield to a document (i just need YYYYMMDD) Whats the best way to query against datefield Im creating the datefield as the following newDoc.Add(new Field("newsdate", "", Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS)); but it slow down searches when adding a criteria of this field. what should i d...