The moose likes Other JSE/JEE APIs and the fly likes Indexing key value pairs in files - Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Indexing key value pairs in files - Java" Watch "Indexing key value pairs in files - Java" New topic

Indexing key value pairs in files - Java

Madhumitha Baskaran
Ranch Hand

Joined: Feb 27, 2010
Posts: 66
I have checked Lucene's way of indexing files. But I would need to index key value pairs. Like I have many (word,sentence) combinations in a single file or few number of files. Most of the cases, it is in the single file.

I would like to search the sentence based on the word which I use for searching. What's the mechanism that I need to use with Java?

Something similar to Sequence file in Hadoop. Without parsing through entire data, we should be able to get the value for every key available.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10826

[Maneesh]Deleted response after finding about the crossposting.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Kemal Sokolovic

Joined: Jun 19, 2010
Posts: 825

Please BeForthrightWhenCrossPostingToOtherSites (StackOverflow).

The quieter you are, the more you are able to hear.
I agree. Here's the link:
subject: Indexing key value pairs in files - Java
jQuery in Action, 3rd edition