#
# Copyright (c) Open Source Strategies, Inc.
# 
# Opentaps is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Opentaps is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Opentaps.  If not, see <http://www.gnu.org/licenses/>.

#
# Configuration for hiberate search and set weight for fields/entities
# NOTICE: Don't remove any initial line from this file, and we only support non-view entity and string fields.

Party = index
#party id should be UN_TOKENIZED
Party.partyId = 10,UN_TOKENIZED
#description should be TOKENIZED (default)
Party.description = 1
#partyType id should be UN_TOKENIZED
Party.partyTypeId = 1,UN_TOKENIZED
#status id should be UN_TOKENIZED
Party.statusId = 1,UN_TOKENIZED

PartyGroup = index
#party id should be UN_TOKENIZED
PartyGroup.partyId = 10,UN_TOKENIZED
#groupName should be TOKENIZED (default)
PartyGroup.groupName = 5
#comments should be TOKENIZED (default)
PartyGroup.comments = 1

Person = index
#party id should be UN_TOKENIZED
Person.partyId = 10,UN_TOKENIZED
#firstName should be TOKENIZED (default)
Person.firstName = 5
#lastName should be TOKENIZED (default)
Person.lastName = 5
#middleName should be TOKENIZED (default)
Person.middleName = 5
#firstNameLocal should be TOKENIZED (default)
Person.firstNameLocal = 5
#lastNameLocal should be TOKENIZED (default)
Person.lastNameLocal = 5
#nickname should be TOKENIZED (default)
Person.nickname = 1

# index PartyRole entity
# we using PartyRole to find which party is supplier, contact, account...
PartyRole = index
PartyRole.partyId = 1,UN_TOKENIZED
PartyRole.roleTypeId = 1,UN_TOKENIZED

# create index for SalesOpportunityRole to find SalesOpportunity
SalesOpportunityRole = index
SalesOpportunityRole.salesOpportunityId = 1,UN_TOKENIZED
SalesOpportunityRole.partyId = 1,UN_TOKENIZED
SalesOpportunityRole.roleTypeId = 1,UN_TOKENIZED

# index SalesOpportunity entity
SalesOpportunity = index
SalesOpportunity.salesOpportunityId = 10,UN_TOKENIZED
SalesOpportunity.opportunityName = 5
SalesOpportunity.description = 1
SalesOpportunity.opportunityStageId = 1,UN_TOKENIZED

# index OrderRole entity
OrderRole = index
OrderRole.orderId = 1,UN_TOKENIZED
OrderRole.partyId = 1,UN_TOKENIZED

# index OrderHeader entity
OrderHeader = index
OrderHeader.orderId = 10,UN_TOKENIZED
OrderHeader.orderTypeId = 1,UN_TOKENIZED
OrderHeader.orderName = 5
OrderHeader.salesChannelEnumId = 1,UN_TOKENIZED
OrderHeader.statusId = 1,UN_TOKENIZED

# index CustRequestRole entity
CustRequestRole = index
CustRequestRole.custRequestId = 1,UN_TOKENIZED
CustRequestRole.partyId = 1,UN_TOKENIZED

# index CustRequest entity
CustRequest = index
CustRequest.custRequestId = 10,UN_TOKENIZED
CustRequest.custRequestName = 5
CustRequest.description = 1

PartySupplementalData = index
PartySupplementalData.partyId = 1,UN_TOKENIZED
PartySupplementalData.companyName = 5
PartySupplementalData.companyNameLocal = 5
