C ++

2022-12-28   ES  

[size = medium] [color = black] [b] 1, what is Faceted Search [/b] [/color] [/size]

FACET [‘fæsɪt] is difficult to translate, and can only be understood by example. Solr author Yonik Seeley also gives a more direct name: Guided Navigation, Paramatic Search.

[img]http://img0.tuicool.com/EVN7B3.png!web[/img]

is a relatively direct Faceted Search example. Brand, product characteristics, sellers are [color = black] [b] facet [/b] [/color]. And Apple, Lenovo and other brands are [color = black] [b] facet value [/b] [/color] or [color = black] [b] constraints [/b] [/color] The statistical value of the band is [color = black] [B] Facet Count/Constraint Count [/b] [/color].

[size = medium] [color = black] [b] 2, facet use [/b] [/color] [/size]

[quote] q = superb
facet = true

facet.field = product feature
facet.field = brand
facet.field = seller [/quote]

[quote] http:// …/select? Q = Super Ben & FACET = TRUE & WT = JSON
& facet.field = brand & facet.field = product characteristics & Facet.field = seller [/quote]

can also submit query conditions and set FQ (Filter Query).

[quote] q = computer
facet = true

fq = Price: [8000 to *]
FACET.Mincount = 1 // FQ Filter the unconnected field, and it will display the count as 0
facet.field = product feature
facet.field = brand
facet.field = seller [/quote]

[quote] http:// …/select? Q = Super Ben & FACET = TRUE & WT = JSON
& fq = Price: [8000 to *] & Facet.minCount = 1
& facet.field = Brand & Facet.Field = Product features & Facet.Field = seller [/quote]

[quote]”facet_counts”: {

“facet_fields”: {

“Brand”: [
“Apple”, 4,

“Lenovo”, 39

…]

“Product features”: [
“graphics card”, 42,
“Core”, 38
…]

…}}[/quote]

If the user selects the classification of Apple, the query condition needs to add another FQ query condition and remove the Facet.field where Apple is located.

[quote] http:// …/select? Q = Super Ben & FACET = TRUE & WT = JSON
& fq = Price: [8000 to *] & fq = Brand: Apple & Facet.minCount = 1
& facet.field = Brand & Facet.Field = Product features & Facet.Field = seller [/quote]

[size = medium] [color = black] [b] 3, facet parameter [/b] [/color] [/size]

[quote] Facet.prefix – Limit the prefix of constains

FACET.Mincount = 0 -Limit the minimum return value of the constants count, the default is 0

FACET.SORT = Count -Sorting method, according to count or index

FACET.Offset = 0 -Represents the offset in the current sorting situation, which can be used as a paging

facet.limit = 100 -number returned by Constrains

facet.missing = False -Whether to return without value

facet.date – Deprecated, use facet.range

facet.query[/quote]

Specify a query string as Facet Constraint

[quote]facet.query = rank:[* TO 20]

facet.query = rank:[21 TO *][/quote]

[quote]”facet_counts”: {

“facet_fields”: {

“Brand”: [
“Apple”, 4,

“Lenovo”, 10

…]

“Product features”: [
“graphics card”, 11,
“Core”, 20
…]

…}}[/quote]

Reference: http://www.tuicool.com/articles/iv2ujiu

source

Related Posts

Kettle creates and connects mysql resource library to create a conversion Chinese garbled code Kettle MySQL character set

zynq7000 series transplantation -JDK1.7 transplant to embedded ARM platform

HDU1426 Sudoku Killer

More than 5G and Hongmeng, the latest big move in Huawei, throw AI to calculate the nuclear bomb

C ++

Random Posts

HDOJ 2033 people see people love

leetcode 119. Yang Hui triangle II

POJ 1797 Heavy Transportation

FASTADMIN use -Basic use articles

suffix expression