0
0
Fork 0

added build tag 'icu' to enable functionality dependent on it

This commit is contained in:
Marty Schoch 2014-08-25 12:22:01 -04:00
parent 21ef6e9878
commit e8959d03ae
43 changed files with 76 additions and 1 deletions

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package ckb
import (

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package ckb
import (

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package da

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package da

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package de

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package de

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package en

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package en

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package es

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package es

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package fa
import (

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package fa
import (

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package fi

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package fi

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package fr

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package fr

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package hu

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package hu

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package it

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package it

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package nl

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package nl

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package no

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package no

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package pt

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package pt

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package ro

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package ro

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package ru

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package ru

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package sv

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package sv

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package th
import (

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package th
import (

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package th
import (

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package tr

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package tr

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package unicode_word_boundary
// #cgo LDFLAGS: -licuuc -licudata

View File

@ -6,6 +6,9 @@
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package unicode_word_boundary
import (

View File

@ -39,7 +39,6 @@ import (
// tokenizers
_ "github.com/couchbaselabs/bleve/analysis/tokenizers/regexp_tokenizer"
_ "github.com/couchbaselabs/bleve/analysis/tokenizers/single_token"
_ "github.com/couchbaselabs/bleve/analysis/tokenizers/unicode_word_boundary"
_ "github.com/couchbaselabs/bleve/analysis/tokenizers/whitespace_tokenizer"
// date time parsers

16
config_icu.go Normal file
View File

@ -0,0 +1,16 @@
// Copyright (c) 2014 Couchbase, Inc.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software distributed under the
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// +build icu full
package bleve
import (
_ "github.com/couchbaselabs/bleve/analysis/tokenizers/unicode_word_boundary"
)

View File

@ -8,6 +8,8 @@
// and limitations under the License.
// +build cld2 full
// +build libstemmer full
// +build icu full
package main

View File

@ -8,6 +8,7 @@
// and limitations under the License.
// +build libstemmer full
// +build icu full
package bleve