Hi all
I have a Solr engine deployed with a Standard Request Handler
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<!-- default values for query parameters -->
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="facet">true</str>
<str name="facet.field">path</str>
<str name...
Hi,
i want to add a QSB in my activity which will show search result from a list of string variables with in my activity.Can anyone know how can i do this.
Thanks in advance....
...
Input a query, and Google's API will give me an XML of results?
...
I frequently search for a token, perhaps a function name, throughout my codebase. My traditional method would be to grep for the term itself. However, the codebase is so large that I can't do this efficiently (it takes minutes).
Is there a way to do this efficiently?
ack (which ignores irrelevent files such as revision control files) i...
I'm looking to list all rows where the field starts between the range of AA to AM. I know I could to this by ORing a ton of LIKEs together, but is there a better way?
I'm running SQL Server if that changes things.
Thanks!
...
Hi, guys,
I'm trying to integrate Hibernate Search into one of the projects I'm currently working on. The first step in such an endeavour is fairly simply - index all the existing entities with Hibernate Search(which uses Lucene under the hood). Many of the tables mapped to entities in the domain model contain a lot of records(> 1 milli...
I have the following (heavily simplified) model, that uses will_paginate
class Search < ActiveRecord::Base
attr_reader :articles
def after_initialize
@articles = Article.paginate_by_name name, :page => 1
end
end
and the controller code in my show action is
@search = Search.new(params[:search])
This all works fine, but ...
I'm a new developer trying to add new functionality to an old project. The new code I'm trying to implement involves database tables, so I'm looking for the procedure that is called to update or originally populate the table.
But there's over 50 procedures.
Short of opening every procedure manually and using CTRL+F to search for the te...
Hi,
I'm using LINQ to XML to search the XML below (small section of final document) initially on the Country name attibute and was wondering if there would be any performance benefit in creating the name as a child element rather than attribute
<Countries>
<Country name="United Kingdom">
<Grades>
<Grade>PA</Grad...
Hi scene!
what i have is a textbox into which the user types a string. The string will look something like this:
G32:04:20:40
Then the user hits the search button. The program must then open a textfile and search for the "nearest" five strings to the one they entered and display them in a listbox.
I'll define "nearest string" as much ...
How would I modify a selectionSort function to search an array of strings?
void selectionSort (int array[], int size)
{
int startScan, min Index, minValue;
for (startScan = 0; startScan<(size-1); startScan++)
{
minIndex=startScan;
minValue=array[startScan];
for(int index = startScan + 1;index<size;ind...
Does Bing has an option similar to Google Custom Search or Yahoo where I can use Bing to power the search results on my site?
Couple requirements:
Works with an ASP.NET site (is a .NET project)
Host the search box and results on my own website
Ability to customize the look and feel of the results to match my site (Full control is id...
I'm looking for suggestions for an efficient algorithm for finding all matches in a large body of text. Terms to search for will be contained in a list and can have 1000+ possibilities. The search terms may be 1 or more words.
Obviously I could make multiple passes through the text comparing against each search term. Not too efficient.
...
I've got two tables
A:
plant_ID | name.
1 | tree
2 | shrubbery
20 | notashrubbery
B:
area_ID | name | plants
1 | forrest | *needhelphere*
now I want the area to store any number of plants, in a specific order and some plants might show up a number of times: e.g 2,20,1,2,2,20,1
Whats the most effic...
I know that with Vim's substitution command you can specific a range of lines:
:12,24s/search/replace
I want to be able to specify a range with normal searches as well. Something like
:12,24/search
Since that doesn't seem to work (at least on my Vim configuration), does anybody know how to achieve this?
Thank you.
...
$select = $this->_db->select()->from($this->_name,array("id","fullname","username","email"))->where("fullname LIKE '$query%'");
I am using this SQL statement currently to power my Ajax auto suggest, if i type in "a" it gets me results starting with a.
I want to know if this can be accomplished my using Zend Lucene indices.
...
I have three tables in a MySQL database used in a music library application:
The Genre table has columns:
id
title (string)
The Album table has columns:
id
genre_id (foreign key to Genre.id)
title (string)
artist (string)
and the Track table has columns:
id
album_id (foreign key to Album.id)
title (string)
Each Album can hav...
I have an activity which uses the Android search and the auto search-suggestions capability.
The thumbnails I am using in my activity are all stored on the SD card (there's a lot of them) and are all in MDPI resolution.
When using them in my activity this is fine as I can account for this and scale appropriately, however in the search ...
Hi all,
I am developing an application, in that i have taken navigation bar and table view.
I have taken a button on navigation bar. on clicking that button I want Search bar to pop up underneath navigation bar and table view should automatically slide down.
After clicking cancel button in search bar it should disappear and table vie...
I need to find the following string: 'c++'
My sql query look like this:
SELECT *
FROM shop_product
WHERE
MATCH(shop_product.name, shop_product.product_model, shop_product.keywords, shop_product.part_number, shop_product.upc, shop_product.brand_name)
AGAINST ('c++' IN BOOLEAN MODE))
GROUP BY `product_id`
LIMIT 0, 25
This script ...