Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6884401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:30:12+00:00 2026-05-27T05:30:12+00:00

In software engineering we create indexes all the time (e.g., in databases) but I

  • 0

In software engineering we create indexes all the time (e.g., in databases) but I also hear a lot of people talk about inverted indices. Is there something fundamentally different between the two? They sound like the same thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:30:12+00:00Added an answer on May 27, 2026 at 5:30 am

    One common use is “…to allow fast full-text searching.”

    The two types denote directionality. One takes you forward through the index, and the other takes you backward (the inverse) through the index. That’s it. There’s no mystery to uncover here. Otherwise the two types are identical, it’s just a question of what information you have, and as a result what information you’re trying to find.

    To address your inquiry, I don’t think there’s actually a way to know why the use is what it is today. The only reason it’s important to define which is forward and which one is inverted is so that we can all have a conversation about them, and everyone knows which direction we’re talking about. Think about the terms “left” and “right”: they are relative. Which is which doesn’t matter, except that everyone needs to agree which one is “left” and which one is “right” in order for the words to have meaning. If, as a culture, we decided to flip left and right, then you’d have the same issue figuring out what a “right turn” vs a “left turn” is since the agreed upon meaning had changed. However, the naming is arbitrary, so which one is which (in and of itself) doesn’t matter – what matters is that we all agree on the meaning.

    In your comment where you ask, “please don’t just define the terms”, you’re missing the point, and I think you’re just getting hung up on the wording when there is absolutely no difference between them.

    For the benefit of future readers, I will now provide several “forward” and “inverted” index examples:

    Example 1: Web search

    If you’re thinking that the inverse of an index is something like the inverse of a function in mathematics, where the inverse is a special thing that has a different form, then you’re mistaken: that’s not the case here.

    In a search engine you have a list of documents (pages on web sites), where you enter some keywords and get results back.

    A forward index (or just index) is the list of documents, and which words appear in them. In the web search example, Google crawls the web, building the list of documents, figuring out which words appear in each page.

    The inverted index is the list of words, and the documents in which they appear. In the web search example, you provide the list of words (your search query), and Google produces the documents (search result links).

    They are both indexes – it’s just a question of which direction you’re going. Forward is from documents->to->words, inverted is from words->to->documents.

    Example 2: DNS

    Another example is a DNS lookup (which takes a host name, and returns an IP address) and a reverse lookup (which takes an IP address, and gives you the host name).

    Example 3: A book

    The index in the back of a book is actually an inverted index, as defined by the examples above – a list of words, and where to find them in the book. In a book, the table of contents is like a forward index: it’s a list of documents (chapters) which the book contains, except instead of listing the words in those sections, the table of contents just gives a name/general description of what’s contained in those documents (chapters).

    Example 4: Your cell phone

    The forward index in your cell phone is your list of contacts, and which phone numbers (cell, home, work) are associated with those contacts. The inverted index is what allows you to manually enter a phone number, and when you hit “dial” you see the person’s name, rather than the number, because your phone has taken the phone number and found you the contact associated with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I heard this a lot when talking about software engineering and abstract data types,
I've come across the phrase 'sustaining software engineering' but don't know exactly what it
Our software manages a lot of data feeds from various sources: real time replicated
I'm with a mechanical engineering background but I'm interested to learn good software engineering
I'm learning about software engineering and design right now, and after reading some books
for my final year project (BSc Software Engineering) I am looking at time entries
I'm interested in where to find information about agile software engineering development process metrics,
Most of people say that design patterns only relate with software engineering. Patterns makes
Recently I was reading about Article on Interviewing an Software Engineering Position by Joel
I am software engineering student, and we have assignment to create a system, which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.