I have a solr index with indexed text. I'd like to query documents that start with a certain term. I didn't find a way to do that with the lucene or dismax query parser.
Is there a way to do that?
A solution I thought of is to index the strings with a special token at the beginning of each line, i.e: "STARTOFTEXT" and then query for "STARTOFTEXT something". Is there a nicer solution?