SOLR - multiple indexes on single site?
I'm new to Solr and have a site where I would like to use Solr to power keyword search and product search, both on the same site. I've googled around quite a bit and all I've found is how to power multiple sites with Solr, not power multiple sections on the site. I don't know if using 2 separate indexes is possible (or necessary), but I would like: - different URL paths for search result (one keyword results, the other product search results) - results in product search to only query against product content types, the keyword for any content type - I envision facets to only be needed in product results, but there is potential to use in general keyword results (though results content grouping is much more important to me!) Thanks for any direction you can provide. Jeff
If you are using D7, I recommend this combination search_api search_api_solr facetapi search_api_page You can create multiple indexes and select fields from a particular entity type and it will automatically offer to join anything else that is related to that entity through a reference field. In your case, I would create main index on nodes of the types you want to search, then another index with the product display nodes, join the commerce products and then you can use the facet api to just check select your facets. Finally, create a search_api_page for each index, and add your facet blocks to these pages and voila, solr-based faceted search. Wes On Wed, 2011-12-14 at 10:22 -0600, Jeff Hartman wrote:
I'm new to Solr and have a site where I would like to use Solr to power keyword search and product search, both on the same site.
I've googled around quite a bit and all I've found is how to power multiple sites with Solr, not power multiple sections on the site. I don't know if using 2 separate indexes is possible (or necessary), but I would like: - different URL paths for search result (one keyword results, the other product search results) - results in product search to only query against product content types, the keyword for any content type - I envision facets to only be needed in product results, but there is potential to use in general keyword results (though results content grouping is much more important to me!)
Thanks for any direction you can provide.
Jeff
Thanks Wes, And what if I'm using D6? :) Jeff On Dec 14, 2011, at 6:52 PM, Wesley Nichols wrote:
If you are using D7, I recommend this combination search_api search_api_solr facetapi search_api_page
You can create multiple indexes and select fields from a particular entity type and it will automatically offer to join anything else that is related to that entity through a reference field.
In your case, I would create main index on nodes of the types you want to search, then another index with the product display nodes, join the commerce products and then you can use the facet api to just check select your facets.
Finally, create a search_api_page for each index, and add your facet blocks to these pages and voila, solr-based faceted search.
Wes
On Wed, 2011-12-14 at 10:22 -0600, Jeff Hartman wrote:
I'm new to Solr and have a site where I would like to use Solr to power keyword search and product search, both on the same site.
I've googled around quite a bit and all I've found is how to power multiple sites with Solr, not power multiple sections on the site. I don't know if using 2 separate indexes is possible (or necessary), but I would like: - different URL paths for search result (one keyword results, the other product search results) - results in product search to only query against product content types, the keyword for any content type - I envision facets to only be needed in product results, but there is potential to use in general keyword results (though results content grouping is much more important to me!)
Thanks for any direction you can provide.
Jeff
You might be able to use a small about of custom code. Check out how this module calls solr from a custom path: http://drupal.org/project/custom_search_path .s
On Wed, 2011-12-14 at 10:22 -0600, Jeff Hartman wrote:
I'm new to Solr and have a site where I would like to use Solr to power keyword search and product search, both on the same site.
I've googled around quite a bit and all I've found is how to power multiple sites with Solr, not power multiple sections on the site. I don't know if using 2 separate indexes is possible (or necessary), but I would like: - different URL paths for search result (one keyword results, the other product search results) - results in product search to only query against product content types, the keyword for any content type - I envision facets to only be needed in product results, but there is potential to use in general keyword results (though results content grouping is much more important to me!)
Thanks for any direction you can provide.
Jeff
I need to process additional text fields in a created content type into active links... (I figure someone would have don't this before and might have so early clues.) The field looks like this... <div class="field field-name-field-url-survey field-type-text field-label-inline clearfix"> <div class="field-label">Survey URL: </div> <div class="field-items"> <div class="field-item even">http://thebestplans.org/limesurvey/index.php?sid=11647&lang=en &11647X14X225=A Political Reconciliation - to End the Israeli Arab Conflict (Gilad Katz)&11647X14X2161=[current-user:uid]&11647X14X2162=16A</di v> </div> </div> When processed it should be as so... <div id="plan-evaluate"> <p><a href="http://thebestplans.org/limesurvey/index.php?sid=11647&lang=en& ;11647X14X225=A Political Reconciliation - to End the Israeli Arab Conflict (Gilad Katz)&11647X14X2161=[current-user:uid]&11647X14X2162=16A" onclick="window.open(this.href, 'EvaluationReport', 'resizable=yes,status=no,location=yes,toolbar=no,menubar=no,fullscreen=no,sc rollbars=yes,dependent=no,width=920,left=10,height=800,top=10'); return false;">Evaluate this plan</a></p> </div> What I'm thinking is... <div class="field-item even">display-name, URL</div> OR Label == display-name Note that I'm using tokens =[current-user:uid] Any clues? One option is to make all the fields into full text fields but the document is in 3 languages and this would create a bit of 'mess'. Yani
This should be in the Support list, not Development. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: Yani To: development@drupal.org I need to process additional text fields in a created content type into active links...
Thanks Nancy... I wasn't sure as it seemed to fall between the two. Yani From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Ms. Nancy Wichmann Sent: Sunday, 18 December 2011 12:31 PM To: development@drupal.org Subject: Re: [development] Activating additional fields This should be in the Support list, not Development. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. _____ From: Yani To: development@drupal.org I need to process additional text fields in a created content type into active links...
participants (5)
-
Jeff Hartman -
Ms. Nancy Wichmann -
Simon Hobbs -
Wesley Nichols -
Yani