I use Djapian to search for object by keywords, but I want to be able to filter results. It would be nice to use Django's QuerySet API for this, for example:
if query.strip():
results = Model.indexer.search(query).prefetch()
else:
results = Model.objects.all()
results = results.filter(somefield__lt=somevalue)
return results
Bu...
I have a MOSS 2007 instance where my client wants the content that comes in the My Site profile to not show up as links. How can we achieve this?
I tried removing the preferred search center url from the SSP. It did the trick but it also broke the standard search functionality that resides on the top right hand side of the page (below t...
I have a bunch of PDF files that came from scanned documents. The files contain a mix of images and text. Some were scanned as images with no OCR, so each PDF page is one large image, even where the whole page is entirely text. Others were scanned with OCR and contain images and searchable text where text is present. In many cases ev...
Hi,
Given a string s and an array of smaller strings, T, design a method to search s
for each small string in T.
Thanks.
...
At http://msdn.microsoft.com/en-us/library/ms472953.aspx is stated that queries like
WHERE column IS NULL
and
WHERE column IS NOT NULL
are allowed. IS NOT NULL is working. IS NULL does not return any items. I think this is because the SharePoint indexer does not include null values in the Index. But this syntax is documented at MSD...
Okay, I have an Book Object Class. That has Book.name and Book.id as extensions.
Book.name being NSString. Which is what should be searchable and listed in UITableView.
NSMutableArray *matchingSymptomsArray = [[NSMutableArray alloc] initWithCapacity:50];
for(NSMutableArray *letterArray in DataArray){
for(Book *bk in letterArray){...
Is there a way to replace all occurrences of a substring with another string in std::string?
For instance:
void SomeFunction(std::string& str)
{
str = str.replace("hello", "world"); //< I'm looking for something nice like this
}
...
So for a new project, I'm building a system for an ecommerce site. The idea is to import products from suppliers and instead of inserting them directly into our catalog, we would store all the information in a staging area. Each supplier has their own stage (i.e. table in the database), and then I will flatten the multiple staging areas ...
I have an implementation of the Zend Search (Lucene) framework on my website that contains an index of products with prices.
I am trying to allow customers to search for something, while contsraining the prices. Eg. Search for "dog food" between $5-$10 dollars.
My search index looks like this:
Keyword('name')
Keyword('price')
Lets sa...
I have a text field in my web app where I want to do auto-completion (e.g. the user types "St" and I can suggest "Steve"). The names I'm matching against are in a SQL database table of users. My question is, how can I make this happen in a way that will scale to massive amounts of users?
There's DB full text search or something like ...
Unusual situation. I have a client, let's call them "BuyNow." They would like for every instance of their name throughout the copy of their site to be stylized like "BuyNow," where the second half of their name is in bold.
I'd really hate to spend a day adding <strong> tags to all the copy. Is there a good way to do this using jQuery?
...
Basic Tree-search algorithm for searching a node (with value k) in a binary search tree.
'x' denotes the node of the binary search tree.
TREE-SEARCH (x, k)
if x= NIL or k = key[x]
then return x
if k < key[x]
then return TREE-SEARCH(left[x], k)
else return TREE-SEARCH(right[x], k)
Iterative Version:
ITERATIVE-TREE-SEARCH...
I wanted to find the origin page of a CSS file that somebody once included in a project I'm working on. Unfortunately, the guy that included it didn't write where from it came and has only a vague memory that 'somebody' sent the source file to him.
I wanted to search the web for pages with this css rule
#loginNemId .inner {
....
Good morning all!
Does anyone knows how to do a google search programatically?
I'm developing a Java applications that must do a google search like: http://www.google.pt/search?q=something+to+search
When i try to call this link programatically, the http response is: Forbidden.
I know that there is a Google API to handle this kind of ...
I developed a DLL in Managed C++ which loads some plugins (implemented in any .NET language) at runtime using System.Reflection.Assembly.LoadFile. The interface which is implemented by all plugins is implemented in C#. It's used by the Managed C++ code like this:
#using <IMyPluginInterface.dll> // Make the 'IMyPluginInterface' type ava...
Is there a way in Eclipse to select a Java class, and then bring up a list of all Java files where that class is used within a project?
...
Consider searching a table that contains Apartment Rental Information: A client using the interface selects a number of criteria that are represented as bit fields in the DB, for instance:
AllowsPets
HasParking
HasDeck
ModernKitchen
etc..
We are facing a situation where each new client of our software has additional fields they w...
Hello,
I'm trying to querry blackle.com for searches, but I get an 403 HTTP error, can somebody point out what is wrong here?
#!/usr/bin/env python
import urllib2
ss = raw_input('Please enter search string: ')
response = "http://www.google.com/cse?cx=013269018370076798483:gg7jrrhpsy4&cof=FORID:1&q=" + ss + "&sa=Search"
urllib2....
I have a sequence of bytes that I have to search for in a set of Binary files using Java.
Example: I'm searching for the byte sequence DEADBEEF (in hex) in a Binary file.
How would I go about doing this in Java? Is there a built-in method, like String.contains() for Binary files?
...
Ok, so I'm working on a basic search SPROC.
One of the Parameters is a search text (this will be the test the user enters in, words separated by spaces etc.)
Now all I need is to search these words on a single column in a table, BUT I want it to have ALL the keywords that were entered (at the moment all I can do is if 1 of them is there...