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 7806149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:26:29+00:00 2026-06-02T02:26:29+00:00

Is it possible to use one index as the base for another index? public

  • 0

Is it possible to use one index as the base for another index?

public class BlogPostsOrderedByCreated : AbstractIndexCreationTask<BlogPost, BlogPost> {
    /* Ordering Blogs after creation-date */
}

// TODO: Implement another index that uses above index
//public class BlogSelection :

Is this even possible or do I have to create a totally new index that duplicates the other index’s code? If not possible, then why?

  • 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-06-02T02:26:31+00:00Added an answer on June 2, 2026 at 2:26 am

    No, you cannot do that because it’s very complex to implement this and the value in exchange in minimal.

    It’s complex to implement this because of:
    – You should be notifying in the second index when there is any changed in the first index.
    – How do you implement transactions?

    And there is probably more. The dependably between the indexes will raise some really complex issue to solve, so you better have just two indexes.

    If this not make sense in your scenario you may have been doing something the wrong way. For example, you don’t have to create any BlogPostsOrderedByCreated and BlogSelection indexes, use just a linq query that will do both:

    session.Query<Post>()
           .Where(x => x.Name == "Blog selection")
           .OrderBy(x => x.CreatedDate)
           .ToList();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to use @import in one css file like this. @import file1
Possible Duplicate: When should one use final? When should Java programmers prefer to use
Is it possible to use a variable from one page in a piece of
Is it possible to use multiple header types in one document? For example: header(Content-type:
Is it possible to use the property of one Spring bean to set the
Is it possible to use different SQL languages (eg. MySQL, MsSQL...) within one database,
Helo! Is this possible to use string value of one node which tells what
Is it possible for the XML output of one CGI script to make use
first time use JTree. Just wondering is it possible to have more than one
Is it possible use mod_rewrite to resolve addresses hosted on another server? Say I

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.