Solr indexing structure with MySQL -
i have 3 5 search fields in application , planning integrate apache solr. tried sams single table , working fine. here questions.
can create index multiple tables in same core ? or should create separate core each indexes (i guess concept wrong).
suppose have 4 tables users, careers, education , location. have 2 search boxes in php page 1 search simple locations (just autocomplete box) , 1 search keyword should check on tables careers , education. if multiple indexes possible under single core; 2.1 how define query here ? 2.2 can specify index name in query (like table name in mysql) ?
links can answer concerns enough.
if you're expecting query same data part of same request, such auto-completing users, educations , locations @ same time, indexing them same core want.
the term "core" identical term "index" in usage, , having multiple sets of data in same index achieved through having field indicates type of document (and applying filter query if want documents of 1 type, such fq=type:location
. can use the grouping feature of solr separate result sets of documents each query well.
if you're ever going query data separately, having them in separate indexes way go, you'll able scale , perform analysis , tuning independent each index in case (and avoid having have filter query type of content you're looking for).
specifying index name same specifying core, , part of url solr: http://localhost:8983/solr/index1/
or http://localhost:8983/solr/index2/
.
Comments
Post a Comment