use of org.orcid.utils.solr.entities.OrcidSolrDocument in project ORCID-Source by ORCID.
the class SolrDaoTest method queryStringSearchPatent.
@Test
public void queryStringSearchPatent() throws Exception {
OrcidSolrDocument firstOrcid = buildAndPersistFirstOrcid();
String patentQueryString = "patent-numbers:Elec-hammer01X%3A";
OrcidSolrResults orcidSolrResults = solrDao.findByDocumentCriteria(patentQueryString, null, null);
List<OrcidSolrResult> solrResultsList = orcidSolrResults.getResults();
assertTrue(solrResultsList.size() == 1);
assertEquals(firstOrcid.getOrcid(), solrResultsList.get(0).getOrcid());
}
Aggregations