search - QueryOptionsBuilder Deprecation -


as seen on http://developer.marklogic.com/learn/java/analytics, able faceted searches javaapi. however, examples on page use queryoptionsbuilder, has been deprecated.

is there alternative using queryoptionsbuilder in javaapi faceted searches @ time? or stuck using deprecated class until future release?

thanks!

yes, there alternative. can send or receive query options json or xml instead of using deprecated builder.

to expand bit, queryoptionsmanager.writeoptions() method accepts class implements queryoptionswritehandle marker interface. besides queryoptionshandle class, implementing classes include write handles json or xml.

similarly, readoptions() method accepts classes implement queryoptionsreadhandle marker interface, include read handles json or xml.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -