Hi,
I am a little bit confused. When you say you have indexed:
Code:
name: Bob
name: Boby
name: Bob*
name: *
Do you mean you have literally indexed the asterix (*) symbol? What are you trying to achieve? In case you really indexed the asterix and you search for 'Boby' I expect only to get record2.
Do get record 2,3 and 4 you would have to execute a boolean query like:
Code:
\* OR Bob?*
The question mark would ensure that there is at least one character after Bob. Check this out for more information about Lucene's query syntax:
http://lucene.apache.org/java/docs/queryparsersyntax.html#Boolean%20operators
I am not sure if this helps you at all. Maybe you could give a little bit more context to your problem.
--Hardy