Hello, all!
I've got an error while using find() function. Here is the code:
#include <iostream>
#include <map>
#define N 100000
using namespace std;
int main (int argc, char * const argv[]) {
map<int,int> m;
for (int i=0; i<N; i++) m[i]=i;
find(m.begin(), m.end(), 5);
return 0;
}
I'm getting an compiller error...
Hi, was wondering how to do a search result using PHP + MySQL but not show all the data in the result but only a SUMMARY (lets say limited to 200 characters). And the summary would exactly contain the keyword portion. So -100 characters+keyword+100 characters might be how it would be shown.
Thanks!
...
I have an application that needs to have .doc files uploaded to it. These documents should then be index and the whole collection of documents should be searchable. This will run on a Windows Server, without Word installed, using IIS and SqlServer, but I'd rather not be tied to SqlServer's full text indexing.
I was thinking of using Luc...
In Eclipse editor, if I go Search->File, I can search for files that contain my search term. What I want to do is find all of the files that DO NOT contain my search term. Is that possible?
...
My lucene index contains documents with the field "itemName". This field is boosted with a boost factor between 0 and 1.
When i create a BooleanQuery i'd like that the results are ranked by the count of matched clauses and the boostfactor, so the formula looks like:
score = (count_of_matching_clauses / count_of_total_clauses + boost_fac...
Hi. I need a solution in C++ or Java. Are there standard functions?
...
I'm developing a search form. It has about 10 fields and a search button that retrieve records from a table and put them in a gridview. The user can fill some fields, all the fields or none, and then click Search. Only the fields with info has to be used to perform the search.
I use a query in a tableadapter of a dataset to make the sea...
I have a DataView and I need to search a string inside the view. I only want the search string to get highlighted and all those rows where the search string does not exist to still show but they would obviously not be highlighted. Is there any built in functionailty in DataView or DataGridView to achieve this, or do I have to traverse ea...
I have a number of cuboids whose positions and sizes are given with minimum and maximum x, y and z co-ordinates (so they are parallel to the main axes).
e.g. I might have the following 3 cuboids:
10.5 <= x <= 39.4, 90.73 <= y <= 110.2, 90.23 <= z <= 95.87
20.1 <= x <= 30.05, 9.4 <= y <= 37.6, 0.1 <= z <= 91.2
10.2 <= x <= 10.3, ...
Hi guys,
PROBLEM:
I need to write an advanced search functionality for a website. All the data is stored in MySQL and I'm using Zend Framework on top. I know that I can write a script that takes the search page and builds an SQL query out of it, but this becomes extremely slow if there's a lot of hits. Then I would have to get down to t...
Like in the title. I have no idea what to start with in order to implement a search engine like the one in Wrzuta.pl to a VB.NET 2008 application. I reckon this must be possible since I have seen an application doing this at http://www.wdownloader.yoyo.pl/download.php?cmd=click&id=1 - and a lot of mashups online, too.
If anyone by a...
I have a large collection of MSWord documents (approximately 40,000), which are the results of mailmerges (same main document, different data sources).
One of the merge fields is a text field which could have the text "Yes" or "No".
Is there an easy way to list which of the documents have that merge field set to the value "Yes"? (I'm...
Hi, I am new in Lucene, I am trying to make a search something like this
content="some thext" and (id ="A" or id="B" or id="c")
I am really lost with that, could you help me
Thank you.
...
The situation:
Take a look at this page and search "photo" on both:
http://dev.womenandlogistics.com/testsearchengine.html
The top search engine refreshes the page and displays results with orange link titles and blue links. The bottom search engine displays tabbed results with blue link titles and blue links.
I found an answer to thi...
I had always assumed that AJAX-driven content was invisible to search engines.
(i.e. content inserted into the DOM via XMLHTTPRequest)
For example, in this site, the main content is loaded via AJAX request by the browser:
http://www.trustedsource.org/query/terra.cl
...if you view this page with Javascript disabled, the main content a...
Hi, I was wondering if it is possible to "automate" the task of typing in entries to search forms and extracting matches from the results. For instance, I have a list of journal articles for which I would like to get DOI's (digital object identifier); manually for this I would go to the journal articles search page (e.g., http://pubs.acs...
Hi everyone,
I've got a search input which sends data from an input to a php file as I type. The php file does a search on my database and shows up a list of search options. You know, the ajax style live searching.
My problem is, if you type something really fast, it might just conduct a search off of the first 1 or 2 letters even thou...
I have SQL Server 2005 Report that takes a parameter in a query string that searches customer names. The problem is some customers like to put in a middle initial so when the user 'John Smith' this does not bring up 'John Q. Smith'.
Using only sql, how would I split a string into an array by whitespace then search records matching each ...
I've recently incorporated Google's Custom Search Engine to a client's site. Everything seems to work just fine but when I search something and the results come up, the top navigational menu disappears. Any idea how to fix this? I sure hope I don't need to redo the menu. If I do, does anyone have an alternative? I would use CSS Suckerfis...
I am building a tool that searches people based on a number of attributes. The values for these attributes are scattered across several systems.
As an example, dateOfBirth is stored in a SQL Server database as part of system ABC. That person's sales region assignment is stored in some horrible legacy database. Other attributes are st...