Swapneel Golapkar
Swapneel Golapkar

Reputation: 109

MarkLogic Facets and Range Indexes

I have created an application using the Application Builder in MarkLogic, I need to add some facets in order to display the contents of the file or database, in the search engine. Can someone please help as to how to add range indexes to drive the facets in the Application?

Thanks in Advance Swapneel

Upvotes: 0

Views: 189

Answers (1)

Dave Cassel
Dave Cassel

Reputation: 8422

To build facets, you need range indexes that the facets can draw on. From http://localhost:8000/appservices, you can use App Services to build the indexes. Near the top of the window, select your content database, then click Configure. In the window that appears, click "Add New" under "Range Indexes". You'll get a dialog that will help you with the indexes. When you have finished that, go back to Application Builder and click the 'Resample' button so that Application Builder knows to check for new indexes.

Other ways: You can also use the Admin UI on port 8001. Reading the Range Indexes and Lexicons section of the Administrator's Guide will help you here.

Longer term, you'll want to script the creation of indexes (and other configuration) to ensure consistent configuration across different environments. You can script it directly with the Management API, or you can use an existing tool, like Roxy or ml-gradle.

Upvotes: 2

Related Questions