schema.xml defines two fieldTypes text and textTight. Both use the same resources synonyms.txt, stopwords.txt and protwords.txt.
But this doesn't work because text applies a MappingCharFilterFactory using mapping-ISOLatin1Accent.txt which converts some characters. For text this needs to be respected in the resources synonyms.txt, stopwords.txt and protwords.txt. For textTight it must not be respected. So both fieldTypes must use different resources!
Due to the fact tat textTight is not used by default I recommend to simply remove textTight from schema.xml
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 750426-remove-textTight-7.patch | 3.09 KB | pwolanin |
| #4 | 750426.patch | 1.41 KB | mkalkbrenner |
Comments
Comment #1
robertdouglass commentedAgree. Will point this out to Peter as well.
Comment #2
pwolanin commentedI think this was from some ancient default schema - if we remove it, maybe we can think about a better substitute?
Comment #3
mkalkbrennerI think for 6.x-1.x it should be removed because it's not used. The situation for 6.x-2.x might be different.
I attached a patch to remove it. I already removed support for fieldTight from Apache Solr Multilingual which currently uses Apache Solr Search Integration 6.x-1.x.
Comment #4
mkalkbrennersorry. changed back version and attached patch.
Comment #5
robertdouglass commentedWe didn't start using it in 6.2 either, so I'm thinking this is a no-brainer.
Comment #6
mkalkbrennerSame issue with textSpell, I think:
Comment #7
pwolanin commentedcommitting patch in #4 plus schema version change (attached) - maybe need to think more about how to fix textSpell.
Comment #8
robertdouglass commentedThanks.
Comment #9
pwolanin commentedComment #10
jpmckinney commentedFixed in 5-2 http://drupal.org/cvs?commit=361662
Comment #11
mkalkbrennerSee comment #6. The conflict still exists for textSpell in solrconfig.xml.
Comment #12
jpmckinney commentedI assume you mean schema.xml. Should we just change stopwords.txt to another filename for textSpell? (We will need to modify the installation instructions, I assume.)
Comment #13
jpmckinney commentedNo patch. Setting to active.
Comment #14
jpmckinney commentedComment #15
mkalkbrenneryes. it's schema.xml. Renaming the file to stopwords_spell.txt seems to be the easy solution. The downside will be that no such file comes with the apache solr example where we get stopwords.txt from.
BTW If we decide to use to different files it will be easy to generate these different files from one source using Apache Solr Multilingual.
BTW I still think this issue a bug in 6.x-1.0 and should not be moved to 6.x-2.x.
Comment #16
jpmckinney commentedI fix bugs in 6.x-2.x and then backport (same as the Drupal project), so that the most recent branch is never out of date.
Comment #17
mkalkbrennerI rethought this issue. The mapping-ISOLatin1Accent filter only causes a serious issue for non-English solr indexes.
So give me some feedback on this approach:
- textTight has been removed already from cvs, fine.
- All the configuration that ships with the apachesolr module is only suitable for English indexes. The mapping-ISOLatin1Accent filter doesn't matter for stop words as long as they are English stop words. So we should not touch the default definition of fieldType textSpell.
- Apache Solr Multilingual is able to create two different stop word files on the fly from one source and to change schema.xml accordingly.
So we should close this issue here and leave it to Apache Solr Multilingual to solve it.
Comment #18
jpmckinney commentedI'm fine with delegating responsibility to apachesolr_multilingual for now. I hope sometime in the future we can consider merging apachesolr_multilingual back into apachesolr.
Comment #19
mkalkbrennersee #788842: fieldType textSpell conficts with fieldType text