Hey guys.
I am working on some code that scrapes a page for two css classes on a page. I am simply using the Hpricot search method for this as so:
webpage.search("body").search("div.first_class | div.second_class")
...for each item found i create an object and put it into an array, this works great except for one thing.
The search...
Has anybody come across or created a functionality comparison document between the various enterprise search options like Google Search Appliance, Fast ESP, Lucene?
Any helpful pointers or links much appreciated.
...
i'm coding a query engine to search through a very large sorted index file. so here is my plan, use binary search scan together with Levenshtein distance word comparison for a match. is there a better or faster ways than this? thanks.
...
I am storing questions and answers in a database like FAQs and i want to allow the user to search. so for example the user will enter "how to bla bla bla" and i will search for every word and neglect the common words like "the", "to", "is" ....
so this was my idea, do you think its a good one or you suggest something better?
and how to ...
I'd like to implement fulltext search for a datatable ?
are there any .net libraries which support indexing/searching on the fly ?
...
Hello Stack Overflow.
I have a PHP/MySQL installation. I'm working on a program that uses a MySQL Fulltext search. I want to reduce the min word length to three. I know I can do this by changing the ft_min_word_length global variable and restarting MySQL.
My problem is that the MySQL server is running several other databases, including...
Hi all,
Here's the use case: A user clicks on a link that opens a window displaying the contents of a text log. Easy enough. But is there a way of using POST, to open that text log to a certain location (i.e., search for a particular timestamp given in the post, and show the file at that specific location)?
(Assume I can't put ht...
How do I find all CamelCased words in a document with a regular expression? I'm only concerned with Upper camel case (i.e., camel cased words in which the first letter is capitalized).
...
The advanced search with all the default product attributes are working fine and gives the desired result except for the price criteria where even if i fill the values with the correct range and price that is present in the product list, the message "No items were found using the following search criteria" is displayed.I tried printing t...
Using Bash, how can you traverse folders within specified folder, find all files of specified file type, and every time you find a file, get full file path with file name and full file path without file name as a variables and pass them to another Bash script, execute it, and continue searching for the next file?
...
Hi,
I have two Xapian databases, let's call one "EN" and the other "DE", and let's say the former contains some documents in English, and the latter in German.
If I want users to be able to search both at once, I can easily load both of the databases. However, it seems like I can only use one stemmer and set of stop words?
There's no...
Hi all,
I was going through the django-sphinx documentation, and it looks like it allows you to filter search results using attributes,
queryset = MyModel.search.query('query')
results1 = queryset.order_by('@weight', '@id', 'my_attribute')
results2 = queryset.filter(my_attribute=5)
results3 = queryset.filter(my_other_attribute=[5, 3,4]...
I have two arrays in Objective C and I need to find what index something is so I can insert it in the same place. For instance, lets say I have a "name array" and an "age array". How do I find out what index "charlie" is in the "name array" so I know where to insert his age in the "age" array?
Thanks
...
I am currently using the following algorithm to search on my iPhone app:
NSRange range = [entry.englishEntry rangeOfString:searchText options:NSCaseInsensitiveSearch];
if(range.location != NSNotFound)
{
[self.filteredListContent addObject:entry];
}
The problem is that when I search for a word like 'crap' I also get resu...
Hi,
I have to add a search box, which has dropdown button kind (say it wil have TeamBook and PersonalBook) then when i select TeamBook, the searchbox should get the default data as "SearchTeambook" if not,"SearchpersonalBook".
I have to do this using XAML.
Please help me in doing this.
Thanks
Ramm
...
I have a need to write directly to a SharePoint search index after loading a .tif file to a document library. We have a custom OCR process that works quite well for scanned images, however, we need to write the OCR results to the search index for a given document in SharePoint. I know that SharePoint has a crawler that indexes the files,...
We use SQL Server fulltext search for several tables on our application. We always use AND searches, e.g.:
"Evil" returns "Evil Dead" and "The Evil of Fu Manchu"
"Evil Fu" returns only "The Evil of Fu Manchu"
We want to keep the interface down to just a single search box and button, and we don't want people to have to learn much (if ...
I would like to create a program that will enter a string into the text box on a site like Google (without using their public API) and then submit the form and grab the results. Is this possible? Grabbing the results will require the use of HTML scraping I would assume, but how would I enter data into the text field and submit the form? ...
Hi Guys,
Trying to learning some more PHP. Here is what I'm after.
Essentially, I would like to search a website and return data to my own website.
Add a few keywords to a form.
Use those keywords to query a website such as monster.com for results that match the keywords entered.
Grab that data and return it to my own website.
How...
ok, im building a search engine. and the search module able to extract the relevant words. and now i have a list of words and their offset in original source text.is it a bad idea to use levenshtein distance to compute difference between the query string and the portion of source text ( begin at given word's offset and up to query string...