ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Lucene Query Formatter

by nishant-ns19 ALL

Format Lucene Query object strings

Details

Installs

  • Total 152
  • Win 65
  • Mac 66
  • Linux 21
May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

README

NOTE:

THIS EXTENSION IS HELPFUL FOR DEBUGGING LOGICAL ERRORS ONLY.

Features

This extension is made for formatting object strings of Lucene Queries. These object strings are one liner which can contain thousands of words in case of complex queries due to which it becomes a cumbersome task to read and debug manually but with this formatter you can prettify your object and get a better readability of queries. This extension can be very handy for engineers working in large organisations with Elastic Search database in JAVA.

How to use

  • For Mac: “cmnd+shift+ctrl+i”
  • For Non-Mac: “win+shift+ctrl+i” ####     OR
  • Open Command Palette , choose “Format Query”

Requirements

QUERY MUST NOT CONTAIN ANY VALIDATION ERROR.

Example

  • Original Query:

  • Indented Query: