Anyone have any ideas on the quickest way to turn the SearchHits[] array in
the SearchResult into a list of objects of type 'type'?
So if I make a Java class with two attributes:
class myClass
{
long id;
String name
}
Store many thousands of them, storing all the fields, do a search on them,
get the SearchResult, and want to turn the SearchHits array into a List of
myClass objects, is there some standard techniques for taking all the
fields and values of a 'SearchHit' and assigning them to the fields of an
object, 'en mass', or is it going to be one at a time?
Anyone have any ideas on the quickest way to turn the SearchHits array in the SearchResult into a list of objects of type 'type'?
So if I make a Java class with two attributes:
class myClass
{
long id;
String name
}
Store many thousands of them, storing all the fields, do a search on them, get the SearchResult, and want to turn the SearchHits array into a List of myClass objects, is there some standard techniques for taking all the fields and values of a 'SearchHit' and assigning them to the fields of an object, 'en mass', or is it going to be one at a time?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.