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
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
Related Q & A:
- How To Search People Using Phone Number?Best solution by Yahoo! Answers
- How to Search using jQuery ASP.Net?Best solution by Stack Overflow
- How to Set Specific Site Collection as SharePoint Search Scope using C#?Best solution by SharePoint
- How do you search DOM elements using CSS selectors in Chrome?Best solution by Stack Overflow
- How can I delete the drop down history in the search field?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.