solr terms返回nil

时间:2018-03-08 13:18:01

标签: solr frequency term

我正在运行solr <v-card> <v-card-title> My data <v-spacer></v-spacer> <v-flex xs2> <v-text-field append-icon="search" label="Search data" single-line hide-details v-model="search" ></v-text-field> </v-flex> </v-card-title> <v-data-table :headers="headers" :items="items" :total-items="pagination.totalItems" :pagination.sync="pagination" :search="search" item-key="combo_id" :rows-per-page-items="[50, 50]" hide-actions > <template slot="items" slot-scope="props"> <tr @click="getCombo(props.item.combo_id); props.expanded = !props.expanded"> <td class="text-xs-left">{{ props.item.data }}</td> <td class="text-xs-left">{{ props.item.data2 }}</td> <td class="text-xs-left">{{ props.item.data3 }}</td> <td class="text-xs-left">{{ props.item.data4 }}</td> <td class="text-xs-left">{{ props.item.data5 }}</td> <td class="text-xs-left">{{ props.item.data6 }}</td> <td class="text-xs-left">{{ props.item.data7 }}</td> </tr> </template> <template slot="expand" slot-scope="props"> <v-card flat> <v-card-text> <v-btn color="primary" dark @click.stop="commentDialog = true">Show comments</v-btn> Tags: <strong>{{ comboItemTags }}</strong> <v-btn color="warning" class="right" @click.stop="editDialog = true">Edit system</v-btn> </v-card-text> </v-card> </template> </v-data-table> <div class="text-xs-center pt-2"> <v-pagination v-model="pagination.page" :length="pages" :total-visible="10"></v-pagination> </div> </v-card> data () { return { search: '', items: [], pagination: { page: 1, rowsPerPage: 50, totalItems: 0 }, ... ... }, watch: { pagination: { handler() { this.getAllSystemsNewPage(this.pagination.page); //Fetch new data and push into items }, deep: true } }, 版本,使用7.2.1和基于示例配置的集合。 SolrCloud部分配置(lucene)是

http://localhost:8983/solr/admin/info/system?wt=yaml

术语配置(solr-spec-version "7.2.1" solr-impl-version "7.2.1 b2b6438b37073bee1fca40374e85bf91aa457c0b - ubuntu - 2018-01-10 00:54:21" lucene-spec-version "7.2.1" lucene-impl-version "7.2.1 b2b6438b37073bee1fca40374e85bf91aa457c0b - ubuntu - 2018-01-10 00:48:43" )是:

http://localhost:8983/solr/trans/config?wt=yaml

name "terms" class "solr.TermsComponent" 返回:

http://localhost:8983/solr/trans/terms?wt=xml

虽然集合中有1K个文档(<lst name="/terms"> <str name="startup">lazy</str> <str name="name">/terms</str> <str name="class">solr.SearchHandler</str> <lst name="defaults"> <bool name="terms">true</bool> <bool name="distrib">false</bool> </lst><arr name="components"><str>terms</str></arr> </lst> ,2MB文本):

http://localhost:8983/solr/trans/query?q=*:*&rows=0

如何查看条款(及其频率)?

1 个答案:

答案 0 :(得分:1)

如果您要使用条款组件来获取字段的所有字词,则必须包含the field you want the terms for

http://localhost:8983/solr/trans/terms?terms.fl=fieldname&wt=xml
相关问题