0.102.0 • Published 1 month ago

@blaze-cms/plugin-search-ui v0.102.0

Weekly downloads
1,324
License
GPL-3.0
Repository
-
Last release
1 month ago

Base search plugin ui

This plugin is creating a modal interface for blaze admin and also a searchbar (for client-side) boat are consuming an ELK (Elastic search) API to be able to find any field in the content already created.

Query

To do that we are passing to the SearchAdmin query an speciall variable rawQuery (same with search published content query). This raw query is an ELK query composed by the following fields:

  • query: Returns documents based on a provided query string, using a parser with a strict syntax.
  • fields: Allow you to find in multiple fields. In our case there are not anyone set.
  • minimum_should_match: That matches documents with at least two of the terms that are set in query. Imagine that you have set in query 'this, that or thus' then will match if there are at least of two of this words.
  • type: 'cross_fields': The cross_fields type is particularly useful with structured documents where multiple fields should match. For instance, when querying the first_name and last_name fields for “Will Smith”, the best match is likely to have “Will” in one field and “Smith” in the other.

Also at the end of te query value we added a wildcard in order to do a partial matches. For example if I would like to search all the names that contains da, the results could be adam, david because is matching partially with those names.

rawQuery: {
  query_string: {
    query: <value>*,
    fields: [],
    minimum_should_match: 2,
    type: 'cross_fields'
  }
}

Filter

We have added a filter in order to be able to filter among which entities (pages, articles...) would you like to focus your search. To do that we are accepting the filter variable into te query which has the following format:

{
  filter: [
    {
      terms: {
        docType: filter
      }
    }
  ];
}

Advanced seaches

Imagine that you know in which field is the value that you would like to search. For example in a metakeyword field. Then you could add to the query the following value: metakeyword:myKeyword just to search in every field metakeyword the value myKeyword.

0.102.0

1 month ago

0.102.0-alpha.0

2 months ago

0.101.0

2 months ago

0.101.0-alpha.0

2 months ago

0.99.0

3 months ago

0.99.0-alpha.1

3 months ago

0.98.0

3 months ago

0.97.3

3 months ago

0.98.0-alpha.0

3 months ago

0.97.3-alpha.0

3 months ago

0.97.2

3 months ago

0.97.0

3 months ago

0.97.0-alpha.11

3 months ago

0.97.0-alpha.8

3 months ago

0.97.0-alpha.7

3 months ago

0.97.0-alpha.1

4 months ago

0.97.0-alpha.0

4 months ago

0.96.0

4 months ago

0.94.0

5 months ago

0.95.1-alpha.0

5 months ago

0.95.1-alpha.1

5 months ago

0.95.0

5 months ago

0.94.1-alpha.1

5 months ago

0.94.1-alpha.0

5 months ago

0.94.0-alpha.5

5 months ago

0.94.0-alpha.3

5 months ago

0.92.2

6 months ago

0.92.2-alpha.0

6 months ago

0.92.1

6 months ago

0.92.1-alpha.0

6 months ago

0.92.0

6 months ago

0.92.0-alpha.1

7 months ago

0.92.0-alpha.0

7 months ago

0.91.0

7 months ago

0.91.0-alpha.1

7 months ago

0.91.0-alpha.0

7 months ago

0.90.0

7 months ago

0.90.0-alpha.0

7 months ago

0.88.0

8 months ago

0.87.0

8 months ago

0.87.0-alpha.1

8 months ago

0.87.0-alpha.0

8 months ago

0.84.0-alpha.0

8 months ago

0.83.0-alpha.0

8 months ago

0.80.0-alpha.0

8 months ago

0.79.0-alpha.0

9 months ago

0.74.0-alpha.0

10 months ago

0.69.0-alpha.0

10 months ago

0.61.0-alpha.0

11 months ago

0.60.0-alpha.0

11 months ago

0.55.0-alpha.0

11 months ago

0.53.3-alpha.0

11 months ago

0.53.2-alpha.0

11 months ago

0.53.1-alpha.0

11 months ago

0.53.0-alpha.0

11 months ago

0.52.0-alpha.0

11 months ago

0.51.0-alpha.0

11 months ago

0.50.0-alpha.0

12 months ago

0.48.0-alpha.0

12 months ago

0.47.0-alpha.0

12 months ago

0.46.0-alpha.0

12 months ago

0.45.0-alpha.0

1 year ago

0.43.0-alpha.0

1 year ago

0.42.4-alpha.0

1 year ago

0.42.1-alpha.0

1 year ago

0.42.0-alpha.0

1 year ago

0.41.2-alpha.0

1 year ago

0.39.11-alpha.0

1 year ago

0.39.9-alpha.0

1 year ago

0.39.6-alpha.0

1 year ago

0.39.5-alpha.0

1 year ago

0.39.4-alpha.0

1 year ago

0.39.3-alpha.0

1 year ago

0.39.2-alpha.0

1 year ago

0.38.7-alpha.0

1 year ago

0.38.5-alpha.0

1 year ago

0.38.4-alpha.0

1 year ago

0.38.1-alpha.0

1 year ago

0.38.0-alpha.0

1 year ago

0.37.51-alpha.0

1 year ago

0.37.52-alpha.0

1 year ago

0.37.45-alpha.0

1 year ago

0.37.41-alpha.0

1 year ago

0.37.39-alpha.0

1 year ago

0.37.38-alpha.0

1 year ago

0.37.36-alpha.0

1 year ago

0.37.35-alpha.0

1 year ago

0.37.33-alpha.0

1 year ago

0.37.32-alpha.0

1 year ago

0.37.30-alpha.0

1 year ago

0.37.15-alpha.0

1 year ago

0.37.13-alpha.0

1 year ago

0.37.12-alpha.0

1 year ago

0.37.10-alpha.0

1 year ago

0.37.9-alpha.0

1 year ago

0.37.8-alpha.0

1 year ago

0.37.2-alpha.0

1 year ago

0.37.0-alpha.0

1 year ago

0.36.0-alpha.0

1 year ago

0.35.4-alpha.0

1 year ago

0.35.2-alpha.0

2 years ago

0.33.0-alpha.0

2 years ago

0.32.0-alpha.0

2 years ago

0.31.17-alpha.0

2 years ago

0.31.16-alpha.0

2 years ago

0.31.14-alpha.0

2 years ago

0.31.10-alpha.0

2 years ago

0.31.3-alpha.0

2 years ago

0.31.1-alpha.0

2 years ago

0.31.0-alpha.0

2 years ago

0.30.1-alpha.0

2 years ago

0.30.0-alpha.0

2 years ago

0.29.0-alpha.0

2 years ago

0.28.3-alpha.0

2 years ago

0.28.1-alpha.0

2 years ago

0.27.0-alpha.0

2 years ago

0.27.3-alpha.0

2 years ago

0.26.0-alpha.0

2 years ago

0.25.7-alpha.0

2 years ago

0.25.6-alpha.0

2 years ago

0.25.4-alpha.0

2 years ago

0.25.3-alpha.0

2 years ago

0.25.1-alpha.0

2 years ago

0.24.2-alpha.0

2 years ago

0.24.0-alpha.0

2 years ago

0.22.0-alpha.0

2 years ago

0.21.0-alpha.0

2 years ago

0.20.6-alpha.0

2 years ago

0.20.5-alpha.0

2 years ago

0.20.4-alpha.0

2 years ago

0.20.3-alpha.0

2 years ago

0.20.0-alpha.0

2 years ago

0.18.0-alpha.0

2 years ago

0.16.1-alpha.0

2 years ago

0.16.0-alpha.0

2 years ago

0.15.1-alpha.0

2 years ago

0.15.0-alpha.0

2 years ago

0.14.7-alpha.0

2 years ago

0.14.6-alpha.0

2 years ago

0.14.4-alpha.0

2 years ago

0.14.0-alpha.0

2 years ago

0.13.0-alpha.0

2 years ago