Hi,
Hardy has given you excellent advice but I'll help a bit.
Quote:
1)How to search on untokenized field? which analyzer to choose?
You may search on it as a tokenized field, no difference in the query syntax. You probably don't want to use an analyzer, as the field has not been processed by one (being untokenized). You should open your index with luke, so you can see the fields and try some queries.
Quote:
2)You need to index classes with @Indexed attribute only, I don't think you suggest to search for them manually.
Hibernate Search will index the entities automatically as they are persisted and otherwise change. To test them we usually create an instance of the entity we are testing, persist it and then search for it.
You've made a good point in the case of many indexable entities and starting from an existing database, I'll think about that and recommend some improvement about this.
Quote:
3)Maybe per default Lucene searches over all fields, but let's look at the code
mmm I didn't know that, I don't know if thats true. I usually write my queries specifying a default field. Anyway this is a Lucene question, as Hardy said you should ask at the Lucene forum and/or read Lucene in Action.
4)
Quote:
"title:/"Titanic/""
should be
Code:
"title:Titanic"
I think, but this really depends on the analyzers and tokenizers you are using. Again, we are happy to help with H.Search but you should read more about Lucene.
regards,
Sanne