search

How to Get Rid if Intermediary Page in Searchable Dictionary-Like App

Hi to all! I am working on a search app and since I am a beginner, I decided to start from the searchable dictionary sample, which is quite similar to what I'm trying to achieve. Got it to work, but I have a problem: the sample loads a blank page initially, telling the user to press on the search button to start performing a search. Onc...

Ways to send binary/structured documents to SOLR?

I am using SOLR's ExtractingRequestHandler to ingest the text of documents. The examples in the documentation all use curl to stream documents, like so: curl 'http://.../extract?literal.id=doc1&commit=true' -F "[email protected]" That works just fine, but there is this note: using "curl" or other command line tools to p...

Search/sort algorithms - is there a GoF-like listing for them?

I'm a self-taught developer and, quite frankly, am not all that great at figuring out which search or sort algorithm to use in any particular situation. I was just wondering if there was a Design Patterns-esque listing of the common algorithms available out there in the ether for me to bookmark. Something like: Name of algorithm (with...

input type=text $POST value is null

i'm trying to send the value of the search textbox via jquery on keydown to the php page so that it can display the results containing the search keyword. however, the php page is not reading $_POST of the input textbox [not button]. html: .keydown(function() { //create post data var postData = { "bsearch" : $(this).va...

search using pdo, mysql and php

i'm trying my hand with PDO and would like to know if the following is the correct code to search keywords since it's giving me an error: mysql_real_escape_string(): [2002] A connection attempt failed because connected host has failed to respond. php class: public function searchQuotes() { $search = mysql_real_esc...

How to add SQLFileStream docs to content locations for MSS (MS search server)?

Hi guys, we use MS Search Server Express to search for files stored in traditional directories on our network but would like to also be able to return files that have been stored directly in SQL Server as either SQLFileStream datatype, or stored in-row as varbinary(max). How can add a SQL Server database/table/field as a content location...

Substring search in GAE using python?

I have a model which looks like this: class Search (db.Model) : word = db.StringProperty() an example "word" can look like word = "thisisaword" I want to search all entities in Search for substrings like "this" "isa" etc. How can i do this in App engine using python? Update: The words here will be domain names. So there is some...

Searching with words one character long (MySQL)

I have a table Books in my MySQL database which has the columns Title (varchar(255)) and Edition (varchar(20)). Example values for these are "Introduction to Microeconomics" and "4". I want to let users search for Books based on Title and Edition. So, for example they could enter "Microeconomics 4" and it would get the proper result. My...

jquery search and filter elements in a superfish menu

Hi, I'm using the Superfish jquery plugin and its fine. But I've got a menu with *many" voices (at least 300) and I'm wondering if there is a way to put some text field and filter the menu voices basing on what the user write. Like this (http://jsearchdropdown.sourceforge.net/)... but this one looks pretty ugly! Regards, Segolas ...

Javascript regex - how to get text between curly brackets

Hi, I need to get the text (if any) between curly brackets. I did find this other post but technically it wasn't answered correctly: http://stackoverflow.com/questions/2403678/regular-expression-to-extract-text-between-either-square-or-curly-brackets It didn't actually say how to actually extract the text. So I have got this far: var ...

Fast String Search like startsWith() not equals()

Hi everyone, I have an ordered list (a dictionary - 100K words) and many words to seach on this list frequently. So performance is an issue. I know that a HashSet.contains(theWord) or Collections.binarySearch(sortedList, theWord) are very fast. But I am actually not looking for the whole word. What I want is let's say searching for "s...

Youtube API: Batch searching

Does anyone know if batch searching is possible with youtube api? On the official page (http://code.google.com/apis/youtube/2.0/developers_guide_protocol_batch_processing.html) there is nothing mentioned about this issue. I would like to send some keywords and to get response back for all of them. ...

google image search: search similar images

Hi, I want to write a mobile app which takes a picture and searches google images for similar pictures and then displays the results. However, with google image search I can only search for text strings, and with the search API it seems there's no possibility to search for similar pictures; this feature seems to be available only throu...

How to implement search on a gettext driven multi language site?

I'm setting up a multi-language using gettext. Since all text from other languages are in the compiled .mo files. How should I attack the search function of the site? Any help or point of direction would be appreciated. Note, I have not coded a search enigine before… ...

Storing URLs with keywords - what's the best approach?

Hello all, I am developing a component that stores URLs and maintains a certain set of keywords associated with these URLs. For example- URL: http://www.imdb.com Keywords: search, movies, movie-index, reviews The keywords themselves are not restricted by number. The number of urls may be huge in number ranging between 10K to 100K. Wha...

searchs that are directing traffic to my website

Have you ever seen those website who said: "Your are here because you looked at this terms in google", and then they show you your terms search? Anyone knows how do that? Thanks!! ...

Query for lucene search result

I have a storage of news with the following fields (Title, Body, NewsDate) I need a best query with the following criteria 1) title is more important but less than date 2) date should be compare to the current date if the date of a document is near the current date it is more valuable (NOTE: It doesn't mean that sorting descending on n...

rewriting search suggest in jQuery

Hi All, First, I know that there are jQuery plugins for search suggest. The reason I'm asking this is because I wrote one for my specific needs and I am interested in learning how to make the script in jQuery (rather than just using a plugin). See code that I pasted to pastebin -- I hope that's ok. Original: http://pastebin.com/VFu...

Search for all instances of a string inside a string.

Hello I am using indexOf method to search if a string is present inside another string. But I want to get all the locations of where string is? Is there any method to get all the locations where the string exists? <html> <head> <script type="text/javascript"> function clik() { var x='hit'; //document.getElementById('hideme').value =''; ...

Create a custom search form drupal

I want to add a custom search option on my drupal theme in a block. It will be a form with a text box and few checkboxes. All that the form has to do while submitting is.. generate a search url based on the checkbox state. http://localhost/restaurant/search/node/type:restuarant category:34,38 %keyword% The keyword will be the text ...