Skip to content

Commit

Permalink
Fix the version in arSolrResult
Browse files Browse the repository at this point in the history
Set the version param from hit in arSolrResult
  • Loading branch information
anvit committed Aug 22, 2024
1 parent ffd862f commit d3dc40d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/arSolrPlugin/lib/arSolrPlugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(array $options = [])
'password' => $this->config['solr']['password'],
'port' => $this->config['solr']['port'],
'collection' => $this->config['solr']['collection'],
'path' => '/solr/' . $this->config['solr']['collection'],
'path' => '/solr/'.$this->config['solr']['collection'],
];
$this->solrBaseUrl = 'http://'.$this->solrClientOptions['hostname'].':'.$this->solrClientOptions['port'];
$this->initialize();
Expand Down
3 changes: 3 additions & 0 deletions plugins/arSolrPlugin/lib/query/arSolrResult.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class arSolrResult
public function __construct($hit)
{
$this->_hit = $this->getStructuredDoc($hit);
if ($hit->_version_) {
$this->setParam('_version', $hit->_version_);
}
}

/**
Expand Down

0 comments on commit d3dc40d

Please sign in to comment.