Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.2.5 ga
Mapping documents:
Annotations 3.3.0 GA
Name and version of the database you are using:
mysql 5.0
Lucene 2.2.0
I am using HibernateSearch + lucene to perform text based searches.
the search executes about 1query / second (averaged over 15,000 queries), and I am wondering if this is to be expected speed or not.
The index has about 10,000,000 documents.
Here are the fields that I am searching on
Code:
@Field(name="albumtitle", index= Index.TOKENIZED, store= Store.YES)
private String title;
@Field(name="artist", index= Index.TOKENIZED, store= Store.YES)
private String artist;
@Field(name="title", index= Index.TOKENIZED, store= Store.YES)
private String title;
Here is an example query
artist:(acoustic alchemy) AND albumtitle:(arcanum) AND title:(mr. chow)
I have hard coded that it would return 1 result to see if that helps.
do you have any recommendations on how to make this a little faster?
I am just not sure how to tell if it is slow because of the index, or the query or if this speed is to be expected? Is there a way to group the queries so that it might be faster?
Thanks
Kal