How to start Apache Solr automatically?

Indexing and search full_text arabic field using apache solr? .

  • I am trying to develop an indexing and search full_text project using a solr, I find a problem in search of a feild that contains a text written in Arabic in fact the program returns a correct result when it comes a text written in french or english but the return seems exact search when is a text written in Arabic. We're setting up a Solr to index documents where title field can be in various languages. After googling I found two options: Define different schema fields for every language i.e. title_en, title_fr,title_ar... applying different filters to each language then query one of title fields with a corresponding language. Creating different Solr cores to handle each language and make our app query correct Solr core. i use the first one with 2 filters for arabic: <filter class="solr.ArabicNormalizationFilterFactory"/> <filterclass="solr.ArabicStemFilterFactory"/> thank you in advance.

  • Answer:

    Solr has an Arabic analysis already. If you open the default schema.xml file that comes with Solr, you will see an example of Arabic fieldtype. You can use and then you can use CopyField to copy your fields to the Arabic field type. You have to reindex your content again to get the desired results. Good luck!

Mohamed Abou Gazar at Quora Visit the source

Was this solution helpful to you?

Other answers

Apache solr use arabic analysis , you can use it in the schema file by adding Arabic field like  <fieldType name="text_arabic" class="solr.TextField">       <analyzer class="org.apache.lucene.analysis.ar.ArabicAnalyzer"/>     </fieldType> and you ca also use ArabicNormalization and ArabicStemming

Ahmad Maher Abdelwahab

SearchBlox uses a different collection type to index each language so the different pre-processing filters can be applied. You can download and try it out.

Timo Selvaraj

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.