I have a array which store some country names
im doing a search module
and i wanna to find the db records whether contain the country names or not
but since db design problem , those record can own mutil counties and store the countries by delimiter "|"
below is a example
input: array("Cyprus","Austria") // note that the max input ...
I have the following... I wouldn't say problem, but situation.
I have some HTML with tags and everything. I want to search the HTML for every URL. I'm doing it now by checking where it says 'h' then 't' then 't' then 'p', but I don't think is a great solution
Any good ideas?
Added: I'm looking for some kind of pseudocode but, just i...
I have a djapian search based on the tutorial that pulls back data from one model. How do I limit results based on date being null or not null (such as DeletedDate). When I delete a record I set DeletedDate=now. I do not want these records returned in my results so I need to filter after the search occurs. I've tried several things with ...
I've gone through the docs in github: http://github.com/outoftime/sunspot to find solutions for highlighting, but it doesn't seem to work for me.
My Job model has something like this block (omitted some fields on purpose):
searchable do
text :name
string :name, :stored => true
time :updated_at
time :created_at
t...
hi,
I've noticed the search engine is drupal sometimes requires to be re-indexed in order to update its index with latest posts.
I was wondering how often the re-indexing is performed, and if it is automatically performed by default.
Is it triggered by cron process ?
Thanks
...
I'm using Texticle to do full-text search on Heroku. It's working great.
I'm now trying to setup nightly db backups to Amazon s3 using this script.
When I try heroku rake backups:backup I first get this error:
/disk1/home/slugs/245176_566b3d9_4845/mnt/.bundle/gems/bundler/gems/texticle-3a96c70a9fa60921197f0027204a23824435b142-ee972f...
how to get the number of results for a specific keyword from the share point queryservice web service.
...
Suppose you have several arrays of integers. What is a good way to find pairs of integers, not both from the same list, such that the difference between the first and second integer is 1?
Naturally I could write a naive algorithm that just looks through each other list until it finds such a number or hits one bigger. Is there a more ele...
Hi:
Does anyone know any good data structure and algorithm for searching with multiple predicate.
eg. suppose I have a set of tcp header data (assuming no duplicate). If I were searching for an tcp header of the list by src ip, I could sort the set by src IP and do binary search.
What kind of data structure/algorithm should I use if I...
I have a very large defaultdict(dict) that looks something like this:
data['w']['x']['y']['z']={'a':5,'b':10}
I'm trying to do produce a report that lists the hierarchy of all keys navigated for a particular final dictionary. In other words, I am looking for its "full pathname" as if the last dictionary were the file and the parent p...
I'm using Postgres.
I have a table of Artices in my database, with a column url for url slugs. These are so that I can display the articles in that table on a website as not "example.com/23323" but instead as "example.com/Funny_Thing_Happened_to_Me".
This was straightforward enough to implement, and then as the number of articles grew, ...
I have a table with full text search enabled. But I can't get query the table using wildcard.
select * from products where contains(Description, 'Computer') returns rows with the word "Computer"
select * from products where contains(Description, 'Compute*') [replace "r" with "*"] returns nothing
What's going on?
...
I have used SearchManager and it provides search key only when app is launched. Is there a way to put a text box on the home screen/wallpaper and invoke activity when user presses enter?
...
I just recently ran into the "Search with Pattern" tool in the new ReSharper.
I tried to search for
private $Type$ $Var$ = new $Type$($TypeArgs$);
but when I search it just says "Cannot parse pattern"
when I take way the private access modifier it works. But I am trying to explicitly search for it with the access modifier.
I have a...
Hello all,
How can I make Perl to tell me the character number of a match, for example in a text file I have:
CHI (3) - NSH (1)
DAL (4) - CHI (3)
VAN (3) - CHI (2)
Want I want to get is for CHI the character number in which appears, for example:
Line 1: 0
Line 2: 9
Line 3: 9
Any ideas or hints?.
...
Given that I have a table with a column of TEXT in it (MySQL or SQlite) is it possible to use the value of that column in a way that I could find similar rows with somewhat related text values?
For example, I if I wanted to find related rows to row_3 - both 1 & 2 would match:
row_1 = this is about sports
row_2 = this is about study
row...
What is the difference between Search Bar vs. Search Bar & Search Display Controller?
...
I am looking for example for Google Search like home page widget from where user can type-in keywords to search within my app. Youtube video here.
I followed the tutorial at the dev guide. However, it lists the available RemoteViews, and there is no EditView. In such case how can I provide a editable text-box. I want to build a widget s...
Hi,
What are the tricks and tips one should follow to search in google for exactly getting the relevant search. I have heard and used about google hacks but still having a lot of problem in searching the relevant data on google or any other search engine.
...
Hey folks, I have a field within a table that I need to do a search and replace on, though it's a bit tricky and beyond my measure of querying skills. Basically, the contents of a field may look like this:
image1.jpg
image2.jpg
image3.jpg
image4.jpg
image5.jpg
I need to do a search and replace that would replace each line with somethi...