Solr console for data CRUD

Solr console for data CRUD

Simply record what CURD solr console using gestures

I. CURD

Solr provided on the console provides complete support CURD; however, when in actual use, but not necessarily very smoothly, hereby record it

We shema defined test.

id: string # 默认的全局唯一字段
content_id: long # 文章id
title: string # 文章标题
content: string # 文章内容
type: int # 文章类型
create_at: long
publish_at: long

1. Add

Into the console, select Collection, click Documents

We chose json way to add data, as shown below:

2. Query

solr query syntax is more complex, there is not expanded, only show you basic queries posture as shown below

3. Modify

Modify the data and add the posture essentially the same, except that the documents, if no primary key, said insert data and default generate a primary key; if the primary key is specified, and the corresponding primary key does not exist, then inserts data; if the primary key exists , then update

4. Delete

When more than one or delete data, at first glance, the entrance in the console does not seem to operate, there really is necessary to note that our interface is still above add / modify pages

Please note that extra, we chose DocumentType as xml, in doocuments, use the <delete>+ <query>tab to query and delete

<delete><query>content_id:10</query></delete>
<commit/>

II. Other

1. a gray Blog : https://liuyueyi.github.io/hexblog

A gray personal blog, recording all study and work in the blog, welcome to go around

2. Statement

Believe everything the book is better to have the content is purely one of the words, due to limited personal capacity, it is inevitable omissions and mistakes, such as find a bug or have better suggestions are welcome criticism and generous gratitude

3. Scan concern

A gray blog

QrCode

Published 206 original articles · won praise 57 · views 160 000 +

Guess you like

Origin blog.csdn.net/liuyueyi25/article/details/104000337