Skip to content

Commit

Permalink
Merge pull request #1634 from blevesearch/analyze_hr
Browse files Browse the repository at this point in the history
Fix import paths for hr analyzer and add it to config
  • Loading branch information
abhinavdangeti authored Oct 28, 2021
2 parents 46e6ffd + 7c7c2c4 commit 251e18e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions analysis/lang/hr/analyzer_hr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
package hr

import (
"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/registry"

"github.com/blevesearch/bleve/analysis/token/lowercase"
"github.com/blevesearch/bleve/analysis/tokenizer/unicode"
"github.com/blevesearch/bleve/v2/analysis/token/lowercase"
"github.com/blevesearch/bleve/v2/analysis/tokenizer/unicode"
)

// Originated from: http://nlp.ffzg.hr/resources/tools/stemmer-for-croatian/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"reflect"
"testing"

"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/registry"
)

func TestCroatianAnalyzer(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions analysis/lang/hr/stemmer_hr.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"regexp"
"strings"

"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/registry"
)

const StemmerName = "stemmer_hr"
Expand Down
6 changes: 3 additions & 3 deletions analysis/lang/hr/stop_filter_hr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package hr

import (
"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/analysis/token/stop"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/analysis/token/stop"
"github.com/blevesearch/bleve/v2/registry"
)

func StopTokenFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error) {
Expand Down
4 changes: 2 additions & 2 deletions analysis/lang/hr/stop_words_hr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package hr

import (
"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/registry"
)

const StopName = "stop_hr"
Expand Down
4 changes: 2 additions & 2 deletions analysis/lang/hr/suffix_transformation_hr.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package hr
import (
"strings"

"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/registry"
)

const SuffixTransformationFilterName = "hr_suffix_transformation_filter"
Expand Down
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ import (
_ "github.com/blevesearch/bleve/v2/analysis/lang/gl"
_ "github.com/blevesearch/bleve/v2/analysis/lang/hi"
_ "github.com/blevesearch/bleve/v2/analysis/lang/hu"
_ "github.com/blevesearch/bleve/v2/analysis/lang/hr"
_ "github.com/blevesearch/bleve/v2/analysis/lang/hy"
_ "github.com/blevesearch/bleve/v2/analysis/lang/id"
_ "github.com/blevesearch/bleve/v2/analysis/lang/in"
Expand Down

0 comments on commit 251e18e

Please sign in to comment.