I am trying to get datalist item for dropdown of my custom form and for that i am using lucene query.
is it good to use lucene query to get data?
No, it is not. Lucene is a legacy query language only supported for low-level technical queries / tests. Use CMIS QL or Alfresco FTS to execute your queries in Alfresco.
Retrieving data ...