MarkLogic Facets and Range Indexes

前端 未结 1 1875
梦如初夏
梦如初夏 2021-01-28 08:30

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 engin

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 09:22

    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.

    0 讨论(0)
提交回复
热议问题