harsham05 / new590DR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solr Metadata Similarity

Dependencies

  1. Build from source mysolr 0.8.3

  2. Set the Solr REST Endpoint credentials as environment variables in ~/.bashrc

    export SOLR_SIM_USER=""
    export SOLR_SIM_PASS=""
    
  3. Define static field in Solr Schema

    <field name="metadataSimilarityScore_d_md" type="float" default="0.0" indexed="true" stored="true" multiValued="false"/>  
    

Usage

usage: solr_similarity.py [-h] -f FILE --solrURL SOLRURL [--commit] [--outputDir OUTPUTDIR]

-f FILE, --file FILE    path to file/Chunk containing Image IDs (one Image ID per line)

--solrURL SOLRURL       Solr Core localhost URL or Solr Core REST endpoint, **Please include complete URL like below**
                        Eg: https://localhost:8983/solr/core1
  
--commit                Include *commit Flag option* to commit calculated metadata similarity scores to Solr Index
  
--outputDir OUTPUTDIR   path to Output Directory to store updated JSON Solr Response documents if commit is not required

License

This project is licensed under the Apache License, version 2.0.

About

License:Apache License 2.0


Languages

Language:Python 83.2%Language:Shell 16.8%