Hello,
I don't know if it's possible, I make a search on 2 classes (for example Class1 and Class2), so I have :
Code:
fullTextSession.createFullTextQuery(luceneQuery,Class1.class, Class2.class);
Then, I want to made a
Code:
fullTextQuery.setSort(new Sort("field"));
I have 2 records in Class1 :
field=a
field=c
and 2 records in Class2 :
field=b
field=d
and I want the result is :
field=a (Class1)
field=b (Class2)
field=c (Class1)
field=d (Class2)
I see in Lucene javadoc that we could Sort by 2 fields, but it's like in SQL, the first field is more important that the second.
Is it possible to do that ?
Thank you.