- 'xsltfile' => "public/solr.xslt"
- search_style.css - vuejs based solr search - vuejs facets
This commit is contained in:
parent
eb4d35ddc1
commit
dd2ad2d898
16 changed files with 316 additions and 110 deletions
|
|
@ -1,20 +1,28 @@
|
|||
import { Component, Vue, Prop, Provide } from 'vue-property-decorator';
|
||||
import VsInput from './components/vs-input.vue';
|
||||
import rdrApi from './search-results/search-api';
|
||||
import VsInput from './text-search/vs-input.vue';
|
||||
import VsResults from './search-results/vs-results.vue';
|
||||
import FacetList from './search-results/facet-list.vue'
|
||||
import rdrApi from './search-results/dataservice';
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
VsInput
|
||||
VsInput,
|
||||
VsResults,
|
||||
FacetList
|
||||
}
|
||||
})
|
||||
export default class App extends Vue {
|
||||
|
||||
results = [];
|
||||
facets = [];
|
||||
bar = 'bar';
|
||||
|
||||
async onSearch(term) {
|
||||
console.log(term);
|
||||
this.results = await rdrApi.search(term);
|
||||
// this.results = await rdrApi.search(term);
|
||||
var res = await rdrApi.search(term);
|
||||
this.results = res.response.docs;
|
||||
this.facets = res.facet_counts.facet_fields;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue