lucene - Hibernate Search, am I doing it right? -


I have a unit that I use to search Hibernate to take advantage of the full text search functionality Want to index There are several fields in the unit that I need to filter. As an example:

  @fild (index = index.knowed, store = store.no) @ lobe private string description ; @fild (index = index provisional, store = store.NO) @ animated (enumetype. Potting) @ note null private type type; The   

description field is what I want to use full text search. I just want to make a plain match in the type field. I feel a little wrong that Lucene should work directly with the top of the search for the full text and I'll be able to handle the additional coding. Something like code> CriteriaBuilder . However, I do not find any way to combine both and should , match in my search algorithm, using BooleanJunction operators, and keyword on the field that I need to match directly.

So my question is, am I correcting it or should I use Lusen only for full text search, is there any other way of other features?

Many thanks, finaner

@finbar, my suggestion is just for this hibernate Search must use. I suggest that you use Hibernate Search by typing your results and enabling the filter on your Flatacquetti, which searches for this query before performing "queries" before. If your documents are not enough then I can post an example for you, I've used these filters often and they work very well.

Comments