1

The official C# driver offers the ability to specify which fields to sort asc, desc, and geo. It doesn't offer sparse.

How do I do this directly from C#?

2
  • Do you mean sparse instead of partial? Partial indexes are not (yet) implemented. Commented Aug 10, 2011 at 15:00
  • Thanks @Remon - I corrected the question. Commented Aug 10, 2011 at 19:13

1 Answer 1

1

The 1.1. driver has SetSparse in the IndexBuilder.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks. Can it do compound indexes?
Yes, IndexKeysDocument. Read the API sir ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.