views:

205

answers:

2

In my index there is a value companyName:opel/vauxhall
Searching for "opel/vauxhall" returns the correct results.
Searching for "opel/*" returns nothing.

Currently I'm replacing the '/' with spaces. But that does give my code a bit of a smell.

Any better ideas?

A: 

Hi,

What database is that?

M.

Maciej
http://incubator.apache.org/lucene.net/
borisCallens
+1  A: 

This kind of problem is almost always caused by the analyzer used for indexing and searching (parsing the query).

Try using a different analyzer, for example StopAnalyzer.

Stefan Schultze