aspose file tools*
The moose likes Performance and the fly likes What is indexing in Web Application to make faster search Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "What is indexing in Web Application to make faster search " Watch "What is indexing in Web Application to make faster search " New topic
Author

What is indexing in Web Application to make faster search

jack martin
Greenhorn

Joined: May 16, 2006
Posts: 5
Dear All,

I have developed one search page in my application.Now i want to know what is indexed site (application). It may be basic question.

How can i write (change) my code being indexed or do i need to change configuration on server or any other?.

Thanks in Advance,
Jack.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61628
    
  67

"jack_martin",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. To be compliant, all you need to do is to replace the underscore in your display name with a space.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
Please clarify what you are asking and provide a few more details.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
jack martin
Greenhorn

Joined: May 16, 2006
Posts: 5
Dear Steve,

I want to know,What is indexing for web site to make it search faster across the site.

Thanks
Jack
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42602
    
  65
I want to know,What is indexing for web site to make it search faster across the site.


Well, that's just about what you wrote at first, but it's not clear what that means. Do you have a search and it's too slow? If so, does it not use an index, and now you want to add one to speed up searching? Does it have an index, but it's still too slow? It's also hard to advise unless you tell us how you index, how you search, what kind of software is used, what gets searched (web pages, databases, files, ...) etc.


Ping & DNS - my free Android networking tools app
Sandeep Deb
Greenhorn

Joined: Jun 01, 2007
Posts: 15
Jack,
There is very little information to answer in specifics, but if you are looking for search engines which can index your content, try exploring Lucene. Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.

You can find more information about Lucene on Apache's site here

I hope this helps.

- Sandeep


- <a href="http://www.sandeepdeb.com" target="_blank" rel="nofollow">Sandeep</a>
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Sounds like we're after the base concept of indexing. Without indexing, you'd probably have to read through all of your site content to find something. So if I searched for "java" you might read some static HTML pages, some database entries, some jsp source, who knows what. Very slow indeed.

Indexing reads all of that stuff once and makes a list of what it finds and where. So if I search for "java" we could go to the index and see that "java" was found on a dozen pages and get the URLS very quickly.

Indexing can be quite tricky. What if you want to find two words that are close together, or have "party" find "parties"?

Lucene, mentioned above, is a nifty indexer. You feed your content through it once and it builds an index that can handle all kinds of slick search requests. I use it on a Wiki that lets anyone update any page any time. When somebody changes a page, I re-index just that page. The folks who built Lucene also made Nutch which can "crawl" your site and index all the pages for you, I think.

Does that go the right direction?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is indexing in Web Application to make faster search