V
V
Vladimir Vasiliev2016-02-13 14:10:58
PHP
Vladimir Vasiliev, 2016-02-13 14:10:58

How to organize search in Solr by fields _t and _txt in English and Russian languages ​​at the same time?

Please tell me there is a problem.
Installed solr 5.4.1 , no settings have been changed.
Added to the index 3 documents, 2 fields each:

title_t (Linkin Park, Papa Roach, Philip Kirkorov)
text_txt (Story about Linkin Park, Story about Papa Roach, Story about Philip Kirkorov)

Search in progress
1) title_t: park - there is a result
2) title_t: philip - there is no result.

I read that you need to add a different type of field. Let's say _txt_en && _txt_ru. But it is impossible to assess what language the text is in, especially since there may be a mixed version.
When using Sphinx, it was possible to simultaneously search in any available language.
But what about Solr?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Rabotyahoff, 2016-05-09
@Holden

What type are your fields?
The question is that it does not search
> 2) title_t: philip - no result
Or how to search in both fields at the same time?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question