Skip to content

Commit

Permalink
Fix #452 search failure for long words. Done by increasing max ngram …
Browse files Browse the repository at this point in the history
…size for identifier and full identifier search.
  • Loading branch information
agrimmtt committed Sep 18, 2015
1 parent 63436f9 commit c46bdac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion solr/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="10" side="front"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="200" side="front"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
Expand Down
4 changes: 0 additions & 4 deletions spec/features/search_items_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
context 'using a full keyword' do
let(:search_term) { identifier }
it 'should have a match' do
pending 'Fails because maxGramSize is 10'
expect(search.results.length).to eq 1
end
end

context 'using a partial keyword' do
let(:search_term) { identifier[0..-2] }
it 'should have a match' do
pending 'Fails because maxGramSize is 10'
expect(search.results.length).to eq 1
end
end
Expand Down Expand Up @@ -74,15 +72,13 @@
context 'using a full keyword' do
let(:search_term) { item.full_identifier }
it 'should have a match' do
pending 'Fails because maxGramSize is 10'
expect(search.results.length).to eq 1
end
end

context 'using a partial keyword' do
let(:search_term) { item.full_identifier[0..-2] }
it 'should have a match' do
pending 'Fails because maxGramSize is 10'
expect(search.results.length).to eq 1
end
end
Expand Down

0 comments on commit c46bdac

Please sign in to comment.