How to filter the results based on protocol

Working on ES 6.4.2. How can I filter the below results.

`Title: Some TITLE
Description:A Storm application is designed as a "topology" in the shape of a directed acyclic graph (DAG) with spouts and bolts acting as the graph vertices. Edges on the graph are named streams and direct data from one node to another. Together, the topology acts as a data transformation pipeline. At a superficial level the general topology structure is similar to a MapReduce job, with the main difference being that data is processed in real time as opposed to in individual batches. Additionally, Storm topologies run indefinitely until killed, while a MapReduce job DAG must eventually end.
url: https://www.someurl.com

Title: Some TITLE
Description:A Storm application is designed as a "topology" in the shape of a directed acyclic graph (DAG) with spouts and bolts acting as the graph vertices. Edges on the graph are named streams and direct data from one node to another. Together, the topology acts as a data transformation pipeline. At a superficial level the general topology structure is similar to a MapReduce job, with the main difference being that data is processed in real time as opposed to in individual batches. Additionally, Storm topologies run indefinitely until killed, while a MapReduce job DAG must eventually end.
url: http://www.someurl.com`

How can I get either one of the record. Title and content is same url and the only one is need to filter http and https. Any Solution.

Hi Anvesh,

did you write a custom mapping for your index or are you using the default mappings?

If you're using the default-mapping or the standard analyzer for the URL-field, the protocols will be tokenized as "https" and "http". So you can simply use a "match"-Query to filter based on the protocol.

Kind regards,
Saskia

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.