When you use the $index->find() method with a string,
special characters
such as "*", "?" and keywords such as
"and" are parsed as part of the
Lucene query language. As such, misplacing them will cause
an exception.
What you probably want to do is to take the input and treat
it as a
literal string, and use the query API (see docs) to build a
query object
out of it.
Good luck,
Shahar.
On Mon, 2008-01-21 at 05:19 -0800, boopfm523 wrote:
>
> $query = $_GET['query'];
> $hits = $index->find($query);
|