Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit d42cf1b

Browse files
author
Élio Cró
committed
Updated README
1 parent 8cc4d1c commit d42cf1b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ app.controller('MyController', function($scope, Solstice) {
5353
sort: 'published desc',
5454
rows: 10
5555
})
56-
.then(function (data){
56+
.then(function (_){
57+
var data = _.data.response;
5758
$scope.results = data.docs;
5859
console.log(data.docs);
5960
});
@@ -73,11 +74,12 @@ app.provider('Equinox', function(Solstice) {
7374
7475
app.controller('AnotherController', function($scope, Equinox) {
7576
Equinox.search({
76-
q: '',
77+
q: '*',
7778
fl: 'title, teaser, published'
7879
rows: 2
7980
})
80-
.then(function (data){
81+
.then(function (_){
82+
var data = _.data.response;
8183
$scope.results = data.docs;
8284
console.log(data.docs);
8385
});
@@ -100,10 +102,10 @@ To use it, just add the directive `solr-search` to any element in the html. This
100102
```
101103
<any-tag solr-search index-url="your-index-url" start="0" rows="20" >
102104
<header>
103-
<p>Found {{solr.found}} results.</p>
105+
<p>Found {{ solr.found }} results.</p>
104106
</header>
105107
<ul>
106-
<li ng-repeat="item in solr.results">{{item.title}}</li>
108+
<li ng-repeat="item in solr.results">{{ item.title }}</li>
107109
</ul>
108110
</any-tag>
109111
```

0 commit comments

Comments
 (0)