Json Output Settings

(from github.com/iny)
Hello,

There are places I do not want to show at the Json outlet, how do I set it up?

  • Also, are there character limits in texts?
  • Is there a key to show all the search?

(from github.com/marevol)
You can add fields in fess_config.properties

query.additional.api.response.fields=

To specify fields to display, add setApiResponseFields in app.xml.

	<component name="queryHelper" class="org.codelibs.fess.helper.QueryHelper">
		<property name="defaultFacetInfo">facetInfo</property>
		<postConstruct name="addHighlightField">
			<arg>"title"</arg>
		</postConstruct>
		<postConstruct name="addHighlightField">
			<arg>"content"</arg>
		</postConstruct>
		<postConstruct name="setApiResponseFields">
			<arg>["title", "content", ...snip...]</arg>
		</postConstruct>
	</component>

are there character limits in texts?

No option.

Is there a key to show all the search?

To enable scroll search, set true in fess_config.properties:

api.search.scroll=true

and then access to localhost:8080/json/scroll?q=*.

(from github.com/iny)
Can we add all the fields here in json output?

(from github.com/marevol)
Yes.

(from github.com/iny)

query.additional.api.response.fields=lang
query.additional.api.response.fields=content

Like this?

(from github.com/marevol)
Try it!

(from github.com/iny)
Thank you for your answers.