MarkLogic Facets and Range Indexes

无人久伴 提交于 2019-12-02 16:04:24

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/30373109/marklogic-facets-and-range-indexes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!