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 connection in solr.cfg #62

Open
mbaechtold opened this issue Apr 22, 2016 · 2 comments
Open

Solr connection in solr.cfg #62

mbaechtold opened this issue Apr 22, 2016 · 2 comments

Comments

@mbaechtold
Copy link
Contributor

mbaechtold commented Apr 22, 2016

IMHO, the <connection> should be placed outside of <settings>in https://github.com/4teamwork/ftw.solr/blob/master/ftw/solr/profiles/default/solr.xml#L4

Here's a config I have exported from a recent project:

<?xml version="1.0"?>
<object name="solr">
 <connection>
  <active value="True"/>
  <host value="127.0.0.1"/>
  <port value="8983"/>
  <base value="/solr"/>
 </connection>
 <settings>
  <async value="False"/>
  <auto-commit value="True"/>
  <commit-within value="10000"/>
  <index-timeout value="0.0"/>
  <search-timeout value="0.0"/>
  <max-results value="10000000"/>
  <required-query-parameters>
   <parameter name="SearchableText"/>
   <parameter name="qt"/>
  </required-query-parameters>
  <search-pattern
     value="+(Title:{value}^100 OR Description:{value}^20 OR SearchableText:{value}^10 OR SearchableText:{value_lwc} OR SearchableText:{value_twc} OR searchwords:{value}^10000) +showinsearch:True OR path_parents:/bern.ch/platform/themen/^500"/>
  <search-facets>
   <parameter name="portal_type"/>
   <parameter name="review_state"/>
   <parameter name="site_area"/>
  </search-facets>
  <filter-query-parameters>
   <parameter name="portal_type"/>
  </filter-query-parameters>
  <slow-query-threshold value="0"/>
  <effective-steps value="1"/>
  <exclude-user value="False"/>
  <highlight_fields/>
  <highlight_formatter_pre value="["/>
  <highlight_formatter_post value="]"/>
  <highlight_fragsize value="100"/>
  <field-list/>
  <levenshtein_distance value="0.0"/>
  <atomic_updates value="True"/>
 </settings>
</object>
@mbaechtold
Copy link
Contributor Author

What do you think, @lukasgraf or @maethu?

@lukasgraf
Copy link
Contributor

@mbaechtold I agree, that's also how the original config in collective.solr is structured.

However, because getElementsByTagName() works recursively, the parsing of the XML config in collective.solr probably still works I would assume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants