search

how to use solr with mysql and php?

i read about how i could use solr to search in my threads but i dont quite understand how it works and i cant find any articles explaining this for a total beginner. could someone explain briefly how solr works and how it communicate with mysql and php? ...

Anyone has implemented SMA* search algorithm?

I find the algorithm description in AIMA (Artificial Intelligence: A Modern Approach) is not correct at all. What does 'necessary' mean? What is the memory limit? The queue size or processed nodes? What if the current node has no children at all? I am wondering if this algorithm itself is correct or not. Because I searched the Internet ...

which solrconfig.xml file is it?

i have just unzipped SOLR zip file downloaded from their website. and it says in the tutorial i have to edit the solrconfig.xml file. there are several in different locations. which one is it? and where should i have this root folder? inside my web space? LICENSE.txt README.txt client contrib docs lib CHANGES.txt NOTICE.txt b...

Optimal Search criteria in this array?

I just wrote this exam, in which there was question: Consider a array of size 2n, where the numbers in odd positions are sorted in ascending order and the the numbers in even positions in descending order. Now, if I have to search for a number in this array, which is a good way to do this? The options were: Quick sort and then binary s...

Does Sphinx (or other third party) search engine work in my case or should I create my own?

I am creating a search function of my classifieds on my website. Here is some of the criteria I need to meet: When searching for 'bmw 520' only matches where these two words come in exactly this order is returned. not matches for only 'bmw' or only '520'. When searching for 'bmw 330ci' results as the above will be returned, but, WITH A...

How to open a file and search for a word [Ruby]?

How can I open a file and search for a word inside it using Ruby? ...

Scraping System Memory for strings matching a regular expression in Windows

Any ideas on where to start? ...

Whats the easiest site search application to implement, that supports fuzzy searching?

I have a site that needs to search thru about 20-30k records, which are mostly movie and TV show names. The site runs php/mysql with memcache. Im looking to replace the FULLTEXT with soundex() searching that I currently have, which works... kind of, but isn't very good in many situations. Are there any decent search scripts out there...

Prefix search through list/dictionary using .NET StringDictionary?

I was wondering if .NET offers any standard functionality for doing a prefix search through a list or a dictionary object. I came across the StringDictionary, but couldn't figure out if it can do that for me. And if it can do a prefix search, can it also do substring search or let me search using something like a regular expression? Th...

Search entire table? PHP MySQL

Hello, I have made the following search script but can only search one table column when querying the database: $query = "select * from explore where site_name like '%".$searchterm."%'"; I would like to know how I can search the entire table(explore). Also, I would need to fix this line of code: echo "$num_found. ".($row['site_name']...

Continually return ajax result with Javascript/jQuery?

I was wondering if it would be possible to use jQuery's ajax function to continually return a result to a page and update accordingly. What I mean is this: - User fires off a search - jQuery uses ajax function to get the first 25 results and adds them to a table. - While the user is looking at that list, jQuery keeps grabbing results 25...

Android: forward search queries to one single activity that handles search

I have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) @Override protected v...

search in all fields for multiple values?

i have two fields: title body and i want to search for two words dog OR cat in each of them. i have tried q=*:dog OR cat but it doesnt work. how should i type it? PS. could i enter default search field = ALL fields in schema.xml in someway? ...

Search a photo for drawing

I want to be able to do something like take a picture of a chalkboard and search for what the teacher wrote and then delete the chalkboard and make like a CGContext Path of what the teacher wrote, or just have what the teacher wrote ...

How do I do a people search on Myspace.com in c#?

I have been to so many sites and documentation pages trying to access the myspace search function via an API call. This function is located at http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.friendfinder. With MySpace's extensive APIs for everything, I can't seem to find a way to access a simple search in code! Whats mo...

Rails auto_complete tag search filter

Hi all, Trying to implement the rails auto_complete plugin to help a user select tags that don't appear on the home page since there will be potentially hundreds of tags and only a small fraction can be displayed. The way my navigation works is like this: I start with a category show page that displays all articles within that category...

algorithm for ranking search results based on previous usage

First and foremost, no I'm not asking please tell me how Google is built in two sentences. What I am asking is slightly different. I have a database filled with textual data that users input. We also give them the functionality to search for this data later. The problem is, we do a simple full text search now and return the results in an...

Search provided by Google vs custom results order

Hi, I want to use google custom search on my site - it's indexed anyway, and the search engine Google provides saves me a lot of pain re-implementing the things they alredy have. Only problem I have is - I need the results sorted my way: I got number of articles on my site, each having a 'rank'. And those that match the search query I ...

android start user defined activity on search button pressed @ handset

I am using following code to start activity when user pressing search button on the handset @Override public boolean onKeyUp(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_SEARCH){ Util.startActivity(ReviewsDetail.this, KeywordSearch.class); return false; }else{ return super.onKeyUp(keyCode, event); } } But he...

what is the best way to find some items in an array based on the item property value?

I have an array like this: var anArray = [ { name: "scala", type: "a" }, { name: "abc", type: "b" }, { name: "test", type: "a" }, { name: "ruby", type: "c" }, { name: "erlang", type: "a" }, ]; I want to find items based on the item property. I currently do it using jQuery. something like this; Array.protot...