001/* 002 * Copyright 2015 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.web.indexing.solr; 017 018import org.ametys.cms.content.indexing.solr.SolrFieldNames; 019 020/** 021 * Constants for Solr field names related to indexation of contents / pages... 022 */ 023public interface SolrWebFieldNames extends SolrFieldNames 024{ 025 /** Content interesting dates (creation or start date etc...) */ 026 public static final String CONTENT_INTERESTING_DATES = "content-interesting-dates"; 027 028 /** Page Id field name for resources or contents. */ 029 public static final String PAGE_IDS = "pageIds"; 030 /** The ids of the ancestors of the page */ 031 public static final String ANCESTOR_IDS = "ancestorIds"; 032 /** Site name. */ 033 public static final String SITE_NAME = "site"; 034 /** Solr specific : Site map name. */ 035 public static final String SITEMAP_NAME = "sitemap"; 036 /** Orphan field name. */ 037 public static final String ORPHAN = "orphan"; 038 /** Shared field name. */ 039 public static final String SHARED = "shared"; 040 /** Content privacy field name. */ 041 public static final String PRIVACY = "privacy"; 042 /** Page title field name. */ 043 public static final String TITLE = "title"; 044 /** Page title field name. */ 045 public static final String LONG_TITLE = "longTitle"; 046 /** Page template. */ 047 public static final String TEMPLATE = "template"; 048 /** Page template. */ 049 public static final String PAGE_TYPE = "pageType"; 050 /** The depth of the page in the sitemap. */ 051 public static final String PAGE_DEPTH = "pageDepth"; 052 /** The contained content ids. */ 053 public static final String CONTENT_IDS = "contentIds"; 054 /** Service ids field name. */ 055 public static final String SERVICE_IDS = "serviceIds"; 056 /** Page title for sorting field name. */ 057 public static final String TITLE_FOR_SORTING = "title-for-sorting"; 058 /** Page document type. */ 059 public static final String TYPE_PAGE = "page"; 060 061 /** Document type for a resource of a page (page attachment) */ 062 public static final String TYPE_PAGE_RESOURCE = "pageResource"; 063 064 /** Title of the ancestor page with the section tag */ 065 public static final String SECTION_PAGE_TITLE = "section-page-title"; 066 067 //// Date facet 068 /** Date facet field. */ 069 public static final String DATES_FACET = "dates-facet"; 070 /** Date sorting */ 071 public static final String DATE_FOR_SORTING = "date-for-sorting"; 072 073 /** Lastname sorting */ 074 public static final String LASTNAME_FOR_SORTING = "lastname-for-sorting"; 075 076 /** The id of the page for an attachment */ 077 public static final String PAGE_ID = "pageId"; 078 079}