not support distributed search?

37 views
Skip to first unread message

Jason Kim

unread,
Apr 17, 2018, 12:24:18 AM4/17/18
to lire-dev
I made solrcloud server with 2 shards and 2 replicas.

When I search by id using lireq handler like below, it has been occured "Did not find an image with the given id ..." error.

{
  "responseHeader":{
    "status":0,
    "QTime":1,
    "params":{
      "ms":"false",
      "id":"/var/opt/img_search/sample_data/0203B410/2440.jpg"}},
  "QueryField":"cl_ha",
  "QueryFeature":"net.semanticmetadata.lire.imageanalysis.features.global.ColorLayout",
  "Error":"Did not find an image with the given id /var/opt/img_search/sample_data/0203B410/2440.jpg"}

But when I search with specific shard like below, it's been succeeded.

http://192.168.1.1:8080/solr/lire_shard1_replica1/lireq?id=/var/opt/img_search/sample_data/0203B410/2440.jpg&ms=false
{
  "responseHeader":{
    "status":0,
    "QTime":26,
    "params":{
      "ms":"false",
      "id":"/var/opt/img_search/sample_data/0203B410/2440.jpg"}},
  "QueryField":"cl_ha",
  "QueryFeature":"net.semanticmetadata.lire.imageanalysis.features.global.ColorLayout",
  "DocValuesOpenTime":"0",
  "RawDocsCount":"1651",
  "RawDocsSearchTime":"18",
  "ReRankSearchTime":"5",
  "docs":[{
      "d":0.0,
      "title":"/var/opt/img_search/sample_data/0203B410/2440.jpg",
      "id":"/var/opt/img_search/sample_data/0203B410/2440.jpg"},
    {
      "d":0.0,
      "title":"/var/opt/img_search/sample_data/0203B410/2439.jpg",
      "id":"/var/opt/img_search/sample_data/0203B410/2439.jpg"},
   ...

Does this mean liresolr does not support distribued search, right?

Jags

unread,
Apr 17, 2018, 11:59:51 AM4/17/18
to lire-dev
Hi,
Try this it will work:
http://192.168.1.1:8080/solr/lire/select?q=id:"/var/opt/img_search/sample_data/0203B410/2440.jpg"&ms=false

Thanks
Jags

Jason Kim

unread,
Apr 17, 2018, 10:22:19 PM4/17/18
to lire-dev
Hi, Jags

I know default search handler supports distributed search and searches id across the shards.
But it searches just id.
I need to search similar images for requested id.
I think lireq handler is used for it.

Thanks
Jason


2018년 4월 18일 수요일 오전 12시 59분 51초 UTC+9, Jags 님의 말:
Reply all
Reply to author
Forward
0 new messages