Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Creating Collections in Solr

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 779
    Comment on it

    Solr:

    Apache Solr is a search platform which is developed in Java and can be used for various purposes such as:

    Using it as a search engine, Can keep your data and use it for querying various things, etc.                                    

    It is s reliable, with less faults, provides distributed indexing, it provides a centralized mode of configuration. It is one of the platform that is used by most of the large sites over the internet.

    To work with Solr you need to create collections first.

    For the latest Solr version , open the command line terminal and type the following to start the server:

    /solr-5.4.1$bin/solr start

     

    For creating a collection , use the following command:

    /solr-5.4.1$ bin/solr create -c [collection-name]

    Example:

        /solr-5.4.1$ bin/solr create -c example
    
        Creating new core 'example' using command:
        http://localhost:8983/solr/admin/cores?action=CREATE&name=example&instanceDir=example
    
        {
          "responseHeader":{
            "status":0,
            "QTime":2934},
          "core":"example"}
    

     

    Your collection will be created and you can use at per your requirements for indexing and searching data.

    Go to your browser and type the following to open solr:

    http://localhost:8983/solr

    There will be core selector in the home page, you can click on that and find your newly created collection over there.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: