search

How do I install Zend on my website and how do I test if it works ?

Background: I need to setup a search engine for my classifieds site, which is PHP and Mysql based. I have downloaded Zend Framework and have no clue what to do with it. My webhosting provider says they don't support changing the php.ini file, and all tutorials I have found so far is based on changing that file. I have found very little...

field that has to have at least one match in solr?

i´ve got 3 query fields that i´ve set with qf. but i want one of these fields to have at least one match of the query strings. how could i do it in the settings without having to add + manually in the q parameter (cause the user will type the keywords and i want this to be default). ...

How to enable search button in HTML help Workshop software

Hi, I have installed HTML help workshop software (version 4.73) in my system and I have created a project.I could open the .chm file and view the files under it. However, I am not getting the search tab in .chm file. I am gettig stop menu item in "OPTIONS" menu. Can any one tell me how to display search tab in .chm file? Please tell me...

JSON find in JavaScript

Is there a better way other than looping to find data in JSON? It's for edit and delete. for(var k in objJsonResp) { if (objJsonResp[k].txtId == id) { if (action == 'delete') { objJsonResp.splice(k,1); } else { objJsonResp[k] = newVal; } break; } } The data is arranged as list of maps. Like: [{id:value...

Combination of searches - standardized format?

While thinking about how to best combine search results from different resources on a site (e.g. blog software, forum software, pages etc.) it appeared to me that it would be pretty neat to have a standardized format (possibly XML) to return search results. This could consist of title, excerpt and more meta information like time, author ...

How do I get a search box to appear alongside my site listing in Google search results a-la Wikipedia

How can I get a search box like this listed for my website? ...

dbgrid text search

how to search dbgrid column with query not table ...

Lucene Query WITHOUT Operators

I am trying to use Lucene to search for names in a database. However, some of the names contain words like "NOT" and "OR" and even "-" minus symbols. I still want the different tokens inside the names to be broken up using an Analyzer and searched upon as a boolean combination of terms, but I do not want Lucene to interpret any of the "N...

Lucene.NET Documents with Matching Field Values

I have an Object with 3 fields in it: ObjectId ParentId ProjectId I have my object mapped to a Lucene.NET index so each document contains the 3 fields and values for the above. I want to perform the following SQL query equivalent as a Lucene.NET search: SELECT * FROM Objects WHERE ProjectId = @ProjectId AND (ObjectId = ParentId OR Pare...

Designing an AJAX driven Quicksilver-style search with multiple search plugins for a website

I'm trying to build a Quicksilver style search system for the internal web app that we develop at work. There are plenty of examples of really cool front ends for this using JQuery or MooTools or whatever. None of these examples really talk about the back-end. As far as I can tell, these examples assuming the back-end is searching a sing...

Django search functionality - bug with search query of length 2

As I am an impressed reader of Stack Overflow I want to ask my first question here. Since I encountered a problem with a snippet and I do not know whether I made a mistake or it's a bug in the code I'm using. I adapted this code for my own site: http://blog.tkbe.org/archive/django-admin-search-functionality/ It works fine and it's rea...

storing large amounts of text in memory

If you need to be able to store a large amount of plain text in memory so it can be searched and edited, what kind of datatype would you use? Let's say I load a 10000 line document into my C# application for searching with LINQ, how would you represent it in memory? Not a string, because it's got be mutable, and strings are immutable. ...

Creating a search over a mySQL database

I am trying to create a search for my website over a mySQL database. I started down the line of using Sphinx but was hesitant when learning that the index doesn't update in real time. I did see they have an almost real time update but I am concerned this doesn't fit my system well because new content is added to the database on a minute ...

Find absolute path to a directory if given path to start search from (in a batch file)

A user will give me an absolute path - say "C:\src" (passed into %1 in the batch file). Then, I need to find the directory entitled "SQLScripts" that is in some subfolder of "C:\src". How can I find the absolute path to the "SQLScripts" directory? Also, I'm not worrying about multiple instances of the SQLScripts directory existing. Fro...

Location-based Twitter search

I want to execute a Location-based Twitter search using the location operator. I have tried using the url http://search.twitter.com/search.atom?q=location%3ANew York But it returns the records with the search word "New York" Can anyone please tell how to use the location operator for twitter search? ...

Any tutorial or code for Tf Idf in java

Hi All, I am looking for a simple java class that can compute tf-idf calculation. I want to do similarity test on 2 documents. I found so many BIG API who used tf-idf class. I do not want to use a big jar file, just to do my simple test. Please help ! Or atlest if some one can tell me how to find TF? and IDF? I will calculate the results...

Traversing a binary tree in C

I'm trying to traverse a binary tree in C. My tree contains an AST node (abstract syntax tree node for compiler). ASTnode reserves nodetype which specifies given node's type (i.e INT OP or CHAR and TYPE we don't need to concern other types), the other members are left and right pointers, and finally we store. Here is code for traversing...

Regular expression to detect the search engine and search words

Hi all, I need to detect search engines that refers to my website. Since every search engine has different query strings for searching(e.g. google uses 'q=', yahoo uses 'p=') I created a database for search engines with their url regex patterns. As an example: http://www.google.com/search?q=blabla&ie=utf-8&oe=utf-8&aq=t&amp...

Creating a search engine for my site (should I use Yahoo BOSS?)

I'd like to create a search engine for my photo sharing website. The search engine would just need to return results based on "tag" words. Photos would be sorted by popularity, newness, or a combination of the two. I was curious whether I could just use the Yahoo BOSS api to accomplish this instead of setting up my own search engine (us...

django admin actions on all the filtered objects

Admin actions can act on the selected objects in the list page. Is it possible to act on all the filtered objects? For example if the admin search for Product names that start with "T-shirt" which results with 400 products and want to increase the price of all of them by 10%. If the admin can only modify a single page of result at a tim...