mirror of https://github.com/apache/lucene.git
Add entity test, to show text goes through literally
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@566294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7482909fcd
commit
6a3597cdb7
|
@ -199,6 +199,13 @@ class ServerTest < Test::Unit::TestCase
|
|||
response = @connection.send(request)
|
||||
assert_equal ["Apache >>Solr<<"], response.highlighted(1, :title_text)
|
||||
end
|
||||
|
||||
def test_entities
|
||||
@connection.add(:id => 1, :title_text => " ")
|
||||
response = @connection.query('nbsp')
|
||||
assert_equal 1, response.total_hits
|
||||
assert_equal '1', response.hits[0]['id']
|
||||
end
|
||||
|
||||
# wipe the index clean
|
||||
def clean
|
||||
|
|
Loading…
Reference in New Issue