Skip to content

Commit

Permalink
Merge branch 'master' into 440_upgrade_solr_to_9_4_1
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasegense committed Nov 11, 2024
1 parent ba4d691 commit 87c2ad0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ public ArrayList<IndexDoc> imagesLocationSearchWithSort(String searchText, Strin
}

solrQuery.addFilterQuery("({!geofilt sfield=exif_location})"); //As from Solr9 for some reason this has to be in filter query.
solrQuery.addFilterQuery("content_type_norm:image"); //Some HTML page can have <meta name "geo.position">. So geo field will have value for HTML page.
QueryResponse rsp = solrServer.query(solrQuery);

// SolrDocumentList docs = rsp.getResults();
Expand Down

0 comments on commit 87c2ad0

Please sign in to comment.