Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Column
- @Field (index = Index.YES, store = Store.YES)
- private String title;
- @Id
- @Column
- @DocumentId
- @Field (store = Store.YES)
- private String guid;
- Session sess = sessionFactory.openSession();
- FullTextSession fts = org.hibernate.search.Search.getFullTextSession(sess);
- //returns matching Articles from database, how would I retrieve only the index records?
- Query query = fts.createFullTextQuery(luceneQuery, Article.class);
- query.setProjection( "field1", "field2", "field3" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement