search

How to implement tertiary search in C?

Write tertiary search program. Notes: Tertiary search is similar to binary search. In binary search we consider two parts of the array and select one part as the next search space. In tertiary search we consider the array in 3 equal parts. For this, we take two "middle" indices, middle1 and middle2 respectively at 1/3 and 2/3 of the arra...

Search form url structure

We are building a large search interface with close to 70 properties. Most of these properties are boolean (only hold 0 or 1), around 12 are with int values and some are string. goal: http://www.example.com/q/test_search/fdgREGd3vfS323 want to avoid: http://www.example.com/q/test_search/?val_12=1000&val_120=0&val_4=XY.... Our ...

A script to convert text in a form to query ?

Hello, I'm a total newbie and want to start with php. I know some javascript already. I want to be able to type some text in a form and convert it to a query e.g. In my website there's this search box, I type in 'example' click submit and it gives me this= http://www.externalsite.com/search?s=example&x=0 and pastes it to the addre...

Help explain BM25 algorithm

can anybody please explain to me about this BM25 algorithm presented on wikipedia link text i'm always bad with math, lol. currently im using classic t-idf which isn't quite good. thanks. ...

PHP - Search a filename for php

Hello! I wan't to search a filename for example like this string: $filetype = "file.php.jpg"; And then i want to search if it finds php in that string, then return false; Now if a filename is named php-logo.jpg i don't want it to be denied. Maybe we should consider searching for .php. in the string? ...

Search-friendly way to store checkbox values in MySQL?

What is a search-friendly way to store checkbox values in the database? Currently, checkboxes are processed as an array and values are separated by a ";" As such: <input type="checkbox" name="frequency[]" value="Daily"/> Daily <input type="checkbox" name="frequency[]" value="Weekly"/> Weekly <input type="checkbox" name="frequency[]" v...

Display search query in results of basic search in Rails

I built a basic search form that queries one column in one table of my app. I followed episode 37 Railscast: http://railscasts.com/episodes/37-simple-search-form Here's my problem. I want to display the search query that the user makes in the view that displays the search results. In my app, the search queries the zip code column of ...

How to require a value is entered in a search form

I built a basic search form that queries one column in one table of my app. I followed episode 37 Railscast: http://railscasts.com/episodes/37-simple-search-form. Note I just posted another search related question, but it's on a completely different issue. In my app, the search queries the zip code column of my profile table, and retur...

Full-text search for static HTML files on CD-Rom via javascript

I will be delivering a set of static HTML pages on CD-Rom; these pages need to be fully viewable with no Internet access whatsoever. I'd like to provide a full-text search (Lucene-like) for the content of those pages, which should "just work" from the CD-Rom with no software installation on the client machine. A search engine implement...

wpf: checking how many components are inside of a Span?

I have WPF Span that is used as a source to a TextBlock. I am doing some tests and it would be very helpful to know in code how many of which type of component is inside of the Span. For example, at one point I insert a new Bold() into the span's inlines. How would I check that there is exactly one Bold component contained inside of the...

Domain search tool

I am looking for a domain search tool that checks domain availability and integrate such tool with my website, how is this done programmatically? ...

MySQL Full text boolean search with tags

I've never done searching from MYSQL before, but I need to implement a search. I have three tables, 'articles', 'articles_tags', and 'tags'. 'articles' holds the first thing I would like to search on, the 'title' field. 'articles_tags' is a pivot table which relates 'articles' and 'tags' together. 'articles_tags' has two fields: 'arti...

Tools for searching offline website

I built a website which runs on localhost and is pretty big by now. What are the tools for indexing and searching my offline website ? For example if my website is placed in the directory c:\mywebsite\ , i just want to submit this directory to the indexing software/tool and then it should work something like Google. I want it to be funct...

multiple criteria search

I have multiple tables with Customer data (ex Customer Name, Customer Contact Name, Customer Service Item etc). I need to enable search on these multiple columns across tables. Then I have to use the search result to pull Customer information (I need Customer ID, or Customer Name). What is the best way to do this? Possible Solution...

performing searches with ASP.NET MVC

Ok, I've just started learning ASP.NET MVC after being an ASP.NET developer for awhile. I think my main problem I'm having is trying to "unlearn" ASP.NET when developing my MVC projects. Here's my question: I have a page which has some input fields. These fields are parameters to a search I'm trying to run against a database. The us...

Algorithm to optimize parameters based on imprecise fitness function

I am looking for a general algorithm to help in situations with similar constraints as this example : I am thinking of a system where images are constructed based on a set of operations. Each operation has a set of parameters. The total "gene" of the image is then the sequential application of the operations with the corresponding param...

Substring algorithm

Can someone explain to me how to solve the substring problem iteratively? The problem: given two strings S=S1S2S3…Sn and T=T1T2T3…Tm, with m is less than or equal to n, determine if T is a substring of S. ...

How to add folder to assembly search path at runtime in .NET?

My DLLs are loaded by a third-party application, which we can not customize. My assemblies have to be located in their own folder. I can not put them into GAC (my application has a requirement to be deployed using XCOPY). When the root DLL tries to load resource or type from another DLL (in the same folder), the loading fails (FileNotFou...

Search in static pages

I have an ASP web application which has pages with static content as well as dynamic content(data from database). I want to implement a search feature in the site.I Can do this with the dynamic data easily by framing the select query based on the search keys and pull data from the tables,But i would like to know how can i implement the ...

How to add google search results on your site?

Is there any way to add google search results into your site such that the results appear under your domain (and the page doesn't get redirected to google.com)? I know about google cse but this is not a free solution. Is paying for CSE the only way? Thanks. ...