search

Where to put model search logic in a Rails application?

I'm trying to figure out the "best" place to put multi-attribute search form logic in a Rails application. The search form in question has several attributes which may or may not have values, and the data types differ between attributes. (For example, there are search options to search for items with a price attribute between two numbers...

How to echo search name in a datalife script

I have a datalife script and i want to echo the search term this does not work! ...

tr1::regex regex_search problem

Hey all, I'm using tr1::regex to try to extract some matches from a string. An example string could be asdf werq "one two three" asdf And I would want to get out of that: asdf werq one two three asdf With stuff in quotes grouped together, so I'm trying to use the regex \"(.+?)\"|([^\\s]+). The code I'm using is: cmatch res...

How do I tell lucene to search a complete document?

I have lucene running and I query it via Solr. The indexes are built, I have a document that contains lots of words, now how to I tell lucene that it has to search the index for the document i provide, what would be the query syntax? ...

creating custom search webpage using google engine

i want to create a search webpage which should display the google results page as well as results from our intranet webpage. can i design it using google custom search engine? ...

Algorithms to play Game of Go ?

What is the state of the art of algorithms to play the game of Go ? Which articles (describing algorithms) are best to read ? There is a StackExachge site devoted to Go, but not enough people commited to ask the question there. ...

Search requires data from multiple cursors/tables

Hi again all, I'm still trying to implement a search function into my Android app. So far it's going ok, although currently the search can only query one table and display the results for this table (its a ListView using SimpleCursorAdapter). What I want is to be able to search multiple tables, but I'm not sure how to get this all into...

mysql string searching algorithm query help

Hi, i have a string table in my mysql/php table. id | str 3 | 2,4,5,6 4 | 7,8,9,14 5 | 3,1,16 if i search with LIKE keyword for example "1" the result is below and its wrong id | str 4 | 7,8,9,14 5 | 3,1,16 But the expected result is id | str 5 | 3,1,16 since "1" is only in the above row but unfort...

Is there a script to manage/search python snippets which understands python code like nullege.com?

I have a folder full of python snippets and want to search it in a more intelligent way than grep. Is there already a script which parses python snippets to AST and lets you search it, like http://nullege.com? For example, if you have the following code: class InspectionFrame(wx.Frame): def SaveSettings(self, config): w, h ...

Get the BindingSource position based on DataTable row

Hi. I have a datatable that contains the rows of a database table. This table has a primary key formed by 2 columns. The components are assigned this way: datatable -> bindingsource -> datagridview. What I want is to search a specific row (based on the primary key) to select it on the grid. I cant use the bindingsource.Find method becau...

scraping and parsing google data like page rank and more for a domain

Hi, I need to scrape/parse some search engines related data for a given domain name(site). I need Google Page Rank (only for the domain name, not each pages). Number of indexed results/pages (google, bing). Number of Backlinks (google, bing, yahoo). Traffic Rank (alexa). Site thumbnail. Could you provide me some pointers on where...

How to search a complete document in Lucene via Solr?

I have a question regarding searching a complete document. 1 - I have indexed a lot of documents on lucene. 2 - Each document has a single word per line. Suppose 200 words which becomes 200 lines. 3 - I know how to search lucene via Solr but; If suppose that i indexed the document mydoc.txt on lucene containing 200 words along with o...

How does DuckDuckGo have infinite scroll results, yet the back button functions as expected if follow a link off-site?

Example search results for 'apple' on DDG: http://duckduckgo.com/apple If you scroll down a couple of times more results are fetched with ajax. Then you click a link, visit the result, click the back button, and the DDG page is exactly as you left it. How? ...

Complex search query in lucene (querying fields which are indexd as numeric, analyzed or not-analyzed using a sinple analyzer)

Hi I am building a search application using lucene. Some of my queries are complex. For example, My documents contain the fields location and population where location is a not-analyzed field and population is a numeric field. Now I need to return all the documents that have location as "san-francisco" and population between 10000 and 20...

Search code inside a Github project

Is there a way to grep for something inside a Github project's code? I could pull the source and grep it locally, but I was wondering if it's possible through the web interface or a 3rd-party alternative. Ideas? ...

How to stop stored procs from whining about a missing column that I am about to delete in SQL Server 2008?

Hi all, I am deleting a column from one of the frequently used tables in my database. Last time I did this errors started to crawl up from all sorts of stored procs that I had long forgotten existed; complaining about the missing column. (only when that stored proc was called) so, I dont want to get winded up with these things again,...

WIX - RegistrySearch returns a wrong Installlocation

Hi all, My WIX-installer shall check for a previously installed version of the software. If there is an older installation it shall be installed in the same path. I'm using RegistrySearch to perform this check. <Property Id="TARGETDIR"> <RegistrySearch Id="InstallLocation" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\...

Recent search functionality

Hi, I am working on C#.Net windows application. Here i want to implement search functionality as like as Microsoft outlook 2007 instant search. This functionality have "Recent Searchs", i want to listout last 20 searchs. These 20 search items where i have to store(file/db) and how to bring . Thanks ...

How can I get Eclipse File Search to skip certain files?

In my Eclipse project, I have a mixture of java files, xml, and various files with different file extensions. I want to perform searches on a regular basis on everything except for the java files, to look for certain settings. Is there a way to tell Eclipse to search all the files, EXCEPT the one's with a .java extension? ...

Google indexing urls redirect 301

Hello, Let say my site has the following URLs indexed in Google: /test/1 /test/2 /test/3 For some reasons, I want those same pages to have the following URLs: /test/abc /test/def /test/ghi I noticed that even if I use a 301 redirect from /test/1 to /test/abc, the URL /test/1 stays in the Google index for a while after the robot hi...