- Top 15 Elasticsearch CURL Commands - Create index: curl -XPUT localhost:9200/index_name Get mapping for index: curl -XGET localhost:9200/index_name/_mapping Add document to index: curl -XPUT localhost:9200/index_name/type/id -d ‘{json data}’ Update document in index: curl -XPOST localhost:9200/index_name/type/id/_update -d ‘{json data}’ Delete a document from the index: curl -XDELETE localhost:9200/index_name/type/id Search index: curl -XGET localhost:9200/index_name/type/_search?q=field:value Aggregate data in index: curl -XGET localhost:9200/index_name/type/_search?size=0&aggs={aggregation query} Bulk …
- Write code in PHP to create, update and query indexed documents. - The following post is structured into the following sections. 1) Create an index called “country” 2) Add a new document with the field called countryName with a value of Austria 3) Do the same for Canada, the United Kingdom, India, United States 4) Add a new document in the same index with countryName equal to …
Write code in PHP to create, update and query indexed documents. Read More »
- Installing Elasticsearch - Install Java on your system, if it is not already installed. Elasticsearch requires Java version 8 or higher. Download the latest version of Elasticsearch from the Elastic website (https://www.elastic.co/downloads/elasticsearch). Extract the downloaded Elasticsearch package to a desired location on your system. Open the Elasticsearch configuration file, located at <Elasticsearch_install_directory>/config/elasticsearch.yml, in a text editor. Configure the …
- Elasticsearch field types and when to use each type - Before we can create a search engine we need to get familiar with Elasticsearch field types. When choosing the appropriate field type in Elasticsearch, consider the following guidelines: Use the keyword field type for fields that will be used for exact match searches, such as IDs or unique names. Use the text field type for …
Elasticsearch field types and when to use each type Read More »
- How to find PDF and Office files on the internet - Searching for document files on the internet should be easy. It can be if you hit the right keyword or know what document format you are looking for. However, the results can vary greatly across different search engines. The most popular document formats include Word, Excel, PowerPoint, text, and various Open Office variants. Constructing search …
How to find PDF and Office files on the internet Read More »
- How to find audio files on the internet - Searching for audio files on the internet should be easy. It is not. It will not be easy unless you know some advanced search commands. Not only that you also need to know the various audio file extensions or formats. The most popular audio file formats include mp3, wav, and ogg . Constructing search commands …
- How to find video files on the internet - Searching for video files on the internet should be easy. It is — if your video files are found on YouTube, Rumble, Vimeo or Bitchute. What if you are looking for video files not found on those servers? It will not be easy unless you know some advanced search commands. Not only that you also …
- Searching like a pro: using Jump Query - Have you ever wondered how the search pros search? You have come to the right place! Utilizing my Jump Query feature you can learn how to create complex search engine queries with relative ease. Better yet, if you don’t want to remember how to construct complex search queries simply use the Jump Query as your …
- Download File on the Web with CURL in Silent Mode - Here is the format of the command that will do just that. curl -s https://somedomain.com/some/url/myfile.pdf --output myfile.pdf The optional output argument specified the name of the file that will be used for saving the target PDF.
- Updating PDF Metadata with the Exiftool by Phil Harvey - Most people don’t bother utilizing PDF metadata which can be crucial from the SEO and web accessibility perspective the minimum. If you are a Windows or a Mac user you can likely edit PDF metadata using one of the following 3 ways: Right-clicking on the PDF file then going to the properties for the file …
Updating PDF Metadata with the Exiftool by Phil Harvey Read More »