Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solr.txt #9

Open
sebiboga opened this issue Jun 13, 2022 · 2 comments
Open

solr.txt #9

sebiboga opened this issue Jun 13, 2022 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@sebiboga
Copy link
Contributor

create Solr folder in C:
download Apache Solr
move it to C:\Solr

add Environment variable
solr_home=C:\Solr\solr-8.8.1\server\solr

to start solr

in cmd run the command
C:\Solr\solr-8.8.1\bin\solr.cmd start -p 8983

New Core
name: tech
instance dir: C:\Solr\solr-8.8.1\server\solr\configsets\sample_techproducts_configs

cd C:\Solr\solr-8.8.1\example\exampledocs>
java -jar -Dc=tech post.jar *.xml
java -Dc=tech -Dtype=text/csv -jar C:\Solr\solr-8.8.1\example\exampledocs\post.jar C:\Solr\solr-8.8.1\example\exampledocs*.csv
java -Dc=tech -Dtype=application/json -jar C:\Solr\solr-8.8.1\example\exampledocs\post.jar C:\Solr\solr-8.8.1\example\exampledocs*.json

java -Dc=tech -Dtype=application/json -jar C:\Solr\solr-8.8.1\example\exampledocs\post.jar C:\Solr\solr-8.8.1\example\exampledocs\jobs.json

job_title
job_link
company
company_full_name
careers_link
website
logo
contact
email
phone

location
address

POST
http://zimbor.go.ro:8983/solr/shaqodoon/update?_=1617366504771&commitWithin=1000&overwrite=true&wt=json
Content-type: application/json

[{
"id":"2c676a30-26cf-4ae9-9e09-f5e628782204",
"job_title":"Java Technical Lead",
"job_link":"https://careers.endava.com/en/Explore-Locations/Central-Europe/Cluj-Napoca/Job-Details?locationid=11322&jobid=CLDRP-2097&jobtitle=Java-Technical-Lead",
"company":"Endava",
"country":"România",
"city":"Cluj-Napoca"

  }]
@sebiboga sebiboga self-assigned this Jun 18, 2022
@sebiboga sebiboga added the documentation Improvements or additions to documentation label Jun 18, 2022
@sebiboga sebiboga added this to the v03 milestone Jun 18, 2022
@sebiboga
Copy link
Contributor Author

for JMeter -- Linux commands

sudo ln -s /opt/apache-jmeter-5.4.1/bin/jmeter /usr/bin/jmeter
sudo chown -R prfuser:prfuser /opt/apache-jmeter-5.4.1
sudo cp -r apache-jmeter-5.4.1 /opt/

@sebiboga
Copy link
Contributor Author

RESTORE SOLR

Windows
have JAVA installed

have JAVA_HOME defined

create Solr folder in C:\

download Apache Solr

https://solr.apache.org/downloads.html

move it to C:\Solr

add Environment variable

solr_home=C:\Solr\solr-8.8.1\server\solr

to start solr

in cmd run the command
C:\Solr\solr-8.8.1\bin\solr.cmd start -p 8983
New Core
name: tech

instance dir: C:\Solr\solr-8.8.1\server\solr\configsets\sample_techproducts_configs
LINUX
sudo apt install openjdk-11-jre-headless
sudo apt install wget
wget https://archive.apache.org/dist/lucene/solr/8.9.0/solr-8.9.0.tgz
tar zxf solr-8.9.0.tgz
cd ~/solr-8.9.0
bin/solr start
bin/solr status

add inbound rules for port
add outbound rules for port
restart machine

create a new core
sudo su - solr -c "/opt/solr/bin/solr create -c mycollection -n data_driven_schema_configs"
RESTORE
copiaza folderul C:\Solr\solr-8.8.1\server\solr\configsets\sample_techproducts_configs
sterge fisierul core.properties
copiaza folderul pe noua masina cu SOLR
in UI, creaza un nou core
seteaza instance_dir, exact folderul unde ai copiat folderul "sample_techproducts_configs "

@sebiboga sebiboga reopened this Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant