I have a simple config of haystack/solr on my django app:
from the models.py of this app:
class device(models.Model):
...
hostname = models.CharField(max_length=45, help_text="The hostname for this device")
...
from the search_sites.py of this app:
class devIndex(indexes.SearchIndex):
'''Haystack class to allow for indexing device objects in TOMS'''
text = indexes.CharField(document=True, use_template=True)
from templates/search/indexes/systems_management/device_text.txt fo this app (names all jibe)
...
{{ object.hostname }}
...
The Problem:
a system is named static1.foo.com:
if I search for "static", I get results for all static servers ("static" is in their description fields)
if I search for "static1", I get 0 results
if I search for "static1.foo.com" I get results, including this server.
my question is, why is haystack/solr not matching the "static1" query?