Marcel,

First of all, do you really want the user to search price:19.99 ?
Maybe you should use some logic like price>=19.99?
If so, you should use range query to handle this case.

--
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes: 
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes
DBSight customer, a shopping comparison site, (anonymous per request) got 2.6 
Million Euro funding!



Marcel Overdijk wrote:
First of all I'm new into Lucene. I'm experimenting right now with it in
combination with Hibernate Search.

What I'm wondering is of I can index numbers related to i18n.

E.g. I have a Book entity with a price attribute.
A book with a price of 19.99 can be found while searching for price:19.99.

The thing is Dutch users will search for 19,99 (different decimal symbol).
How can this be handled.

Furthermore, Dutch users will search for something like prijs:19,99.
Can this be done with aliases or something. The problem is maybe one day I
want to support German language as well.
The front-end app can be translated by simply adding i18n resource bundles.
Is something like this also possible for searching within Lucene?


Cheers,
Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to