indexing

how Index used in between query

How can get my index work when i query using Between command? when i explain the query: explain select * from table where Date between date1 and date2; the return actual key be used is NULL, how to used my index in this case? I have read some documentation from MYSQL, they said BTree index should be used here in order for > < or be...

Python: get the position of the biggest item in an numpy array

How can I get get the position of the biggest item in an numpy array? ...

Does google index pages with opacity:0 or hidden or display:none

Does google index pages with opacity:0 or hidden or display:none ...

should primary key be included in regular indexes

Regarding MS SQL-Server, Is the Primary Key column of a table, included in the regular non-unique indexes on that table? if not, would it make sense to include it in the index? create table dbo.People ( PK_PersonId int not null, PersonName nvarchar (100), Bunch of Other Fields , so when creating an index on PersonName, would it make...

databases with flexible indexes?

form wikipedia:http://en.wikipedia.org/wiki/Index_(database) Some databases extend the power of indexing by allowing indexes to be created on functions or expressions. For example, an index could be created on upper(last_name), which would only store the upper case versions of the last_name field in the index. Another option sometime...

Make content invisible to search engines

Hi How can I hide a specific <div> from Google? Is there any other solution than using javascript to insert this element? I read about <!-- googleoff: index--> here, but I'm not sure it does what I want. The problem is that the div I'm trying to hide can be seen as duplicate content by Google, and even if it hides it from the search re...

not query in lucene

Hi, i need to do not queries on my lucene index. Lucene currently allows not only when we have two or more terms in the query: So I can do something like: country:canada not sweden but I can't run a query like: country:not sweden Could you please let me know if there is some efficient solution for this problem Thanks ...

When to keep an index - Analysing index usage stastics in SQL Server 2008

I'm doing an index report on my MS SQL 2008 database (Right click database -> Reports -> Index Usage Statistics) It tells me that one of my indexes uses: 88 user seeks 0 user scans 6,134,141 user updates Can someone explain to me: What the difference between user seeks and user scans are? How should I determine when to keep an in...

Complex search query in lucene (querying fields which are indexd as numeric, analyzed or not-analyzed using a sinple analyzer)

Hi I am building a search application using lucene. Some of my queries are complex. For example, My documents contain the fields location and population where location is a not-analyzed field and population is a numeric field. Now I need to return all the documents that have location as "san-francisco" and population between 10000 and 20...

Indexing individual fields of SQL Server composite keys

I'm upsizing a Jet database to SQL Server Express 2008 R2 and before doing so, I'm re-evaluating the schema (it was designed in 1997-98, and the guy who designed it (i.e., me) was something of a moron!). My question is about N:N join tables with a two-column composite key. In Jet, joins on the first column of a two-column composite key...

Date Table/Dimension Querying and Indexes

I'm creating a robust date table want to know the best way to link to it. The Primary Key Clustered Index will be on the smart date integer key (per Kimball spec) with a name of DateID. Until now I have been running queries against it like so: select Foo.orderdate -- a bunch of fields from Foo ,DTE.FiscalYearName ,DTE.Fiscal...

SQL Server 2005 Alter Full text catalog not populating indexes

Hi I am rebuilding a full text catalog as follows: ALTER FULLTEXT CATALOG myCatalog REBUILD It is not populating my indexes. When i use the FULLTEXTCATALOGPROPERTY to check the properties I am getting the populating status always as 0 and the itemcount as 0. If i populate the index(which is a part of the catalog above) directly as fo...

Google indexing urls redirect 301

Hello, Let say my site has the following URLs indexed in Google: /test/1 /test/2 /test/3 For some reasons, I want those same pages to have the following URLs: /test/abc /test/def /test/ghi I noticed that even if I use a 301 redirect from /test/1 to /test/abc, the URL /test/1 stays in the Google index for a while after the robot hi...

update index in Solr, error: required field in SolrSchema not found in DataConfig

I'm trying to update my index, but I keep on getting the error: org.apache.solr.handler.dataimport.DataImporter verifyWithSchema INFO: UPC is a required field in SolrSchema . But not found in DataConfigfound in DataConfig I can't figure out why it's complainting, since: the first time I ran the import, it worked fine, and t...

What does Field.Index.NOT_ANALYZED_NO_NORMS mean

I know what does not_analyzed mean. In short the field will not be tokenized by specified Analyzer. However, what does a NO_NORMS means? I see the documentation, but please explain me in plain English. what is index-time field and document boosting and field length normalization ? ...

In MySQL, does putting SELECT foo increase in performance if foo is indexed?

In MySQL, does putting SELECT foo increase in performance if foo is indexed? At RedditMirror.cc, I have a database with 1.2 million records in the GrabbedSites table, a number that increases by approx 500-2000 per day. Early in my career, I was mentored that the only columns that should be indexed are those which you will do WHERE o...

Sphinx Building Index Improvement

Hey guys, I have a question about Sphinx. I use Sphinx to index the full-text searches for my sites, and it works like a dream. At this point in time it takes about 30 minutes to create the indexes for all my databases. This is fine as I only run the indexing script once every hour. But the databases are getting bigger quickly, and soon...

Does OR clause suppress indexes in oracle?

Does OR clause suppress Indexes, If yes can someone provide appropriate example? ...

Is it possible to re-generate Lucene index in background?

Hi there, Sometimes there is need to re-generate a lucene index, e.g. when something changes in the Compass mapping or in the way boosts are applied, or if something went corrupt for whatever reason. In my case, generation of the index takes about 5 to 6 hours, clearing the index before leads to data not being complete for this interva...

Does ALTER INDEX REBUILD ONLINE render indexes invalid?

Am workin in oracle 11g. Does ALTER INDEX REBUILD ONLINE render indexes invalid when executed parallely? ...