Import Data with the REST API
?echo=false
to the URL.Be sure to set the content type header properly for the content being sent. Some frequently used content types are:application/json
, application/xml
application/pdf
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.vnd.openxmlformats-officedocument.presentationml.presentation
$FUSION_HOME/apps/solr-dist/example/exampledocs
you can find a few sample documents. This example uses one of these, books.json
.To push JSON data to an index profile under an app:books.json
, enter the following, substituting your values for username, password, and index profile name:
\*:*
.author
and name
.books.json
. To delete “The Lightning Thief” and “The Sea of Monsters” from the index, use their id values in the JSON file.The del-json-data.json
file to delete the two books:?echo=false
can be used to turn off the response to the terminal.https://FUSION_HOST:FUSION_PORT/api/index-pipelines/INDEX_PIPELINE/collections/COLLECTION_NAME/index?parserId=PARSER
.If you do not specify a parser, and you are indexing outside of an app (https://FUSION_HOST:FUSION_PORT/api/index-pipelines/...
), then the _system
parser is used.If you do not specify a parser, and you are indexing in an app context (https://FUSION_HOST:FUSION_PORT/api/apps/APP_NAME/index-pipelines/...
), then the parser with the same name as the app is used.COLLECTION_NAME_signals
. For example, if your primary collection is called Products
, then the raw signals collection is Products_signals
.
Enable or Disable Signals
_signals
and _signals_aggr
collections are not, your legacy signal data remains intact._signals
and _signals_aggr
collections remain intact so that you can access your legacy signals data.
/collections/{collection}/features/{feature}
endpoint enables or disables signals for any collection:Check whether signals are enabled for a collection_session_rollup
job creates session signals from your raw signals and adds them to the _signals
collection._query_rewrite_staging
collection for review before they are published to the _query_rewrite
collection._head_tail
job sends rewrites for underperforming queries to the the _query_rewrite_staging
collection. It also sends analytics tables to the _job_reports
collection._signals_aggr
collection stores unique combinations of query, document ID, and filters found in your raw signals, each with a timestamp, weight, and count. These are generated by the _click_signals_aggregation
job and the _user_query_history_agg
job.user_item_prefs_agg
job identifies unique pairs of document IDs and user IDs, assigns a timestamp, weight, and count to each pair, and indexes it in the _recs_aggr
collection._content_recs
job by analyzing your primary collection._query_recs
job by analyzing your raw signals._bpr_item_recs
job by analyzing aggregated signals.Identify Trending Items or Queries
doc_id_s
to query_s
.
COLLECTION_NAME_signals
collection by default).solr
, enter it in the Data Format field.field1:weight1,field2:weight2...
.count_i
.log_diff_wt_ratio
field to find the top trending items in the output collection.