Right, this is a quirk of phrase queries. For wildcards to work in phrase
queries you need SOLR-1604 (ComplexPhraseQueryParser).

Or you need to escape your spaces, i.e.
black\ cat*

Best,
Erick


On Tue, Aug 5, 2014 at 11:09 PM, zameer <zameerulhasan...@gmail.com> wrote:

> If we search only "black*" it works but when we use search text "black
> cat*"
> or "(black cat)*" or "(black cat*)*" it come blank.
>
> <fieldType name="text_general_long" class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer>
>         <tokenizer class="solr.KeywordTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>       </analyzer>
> </fieldType>
>
> <field indexed="true" name="my_name" stored="true"
> type="text_general_long"/>
>
> Thank you in advance
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/matching-starts-with-only-tp4094430p4151379.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to