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

Google like search #3

Open
ABACTech opened this issue Sep 26, 2012 · 6 comments
Open

Google like search #3

ABACTech opened this issue Sep 26, 2012 · 6 comments

Comments

@ABACTech
Copy link
Collaborator

Google like search feature that matches verses as user types some partial word and shows the matched verses in an auto complete dropdown.

And build a very powerful search feature so that if someone searches using "Hajj", it will show matches containing "Arafah", "Mecca" etc relevant verses as well.

@oazabir
Copy link
Owner

oazabir commented Sep 26, 2012

I suggest we do the search in three mode:

  1. If someone searches in Arabic, you match only the arabic translation.
  2. If someone searches in English, you match only the Abdel Haleem translation.
  3. If someone searches in Bangla, then you first match the MyTranslation table, then match the Translation table for Bangla items only.

You need to detect which language the search is in. I have seen that Arabic characters have a fixed range in Unicode character set. If the search criteria contains words in that character range, then it is Arabic. Same approach for Bangla.

For the other semantic match, we will have to use the Ontology mapping that is being developed separately. Then we will be able to show matches of words that have ontological relationship.

@oazabir
Copy link
Owner

oazabir commented Sep 28, 2012

@oazabir
Copy link
Owner

oazabir commented Oct 2, 2012

Hi, just checking, how are you doing with the search implementation?

@oazabir
Copy link
Owner

oazabir commented Oct 7, 2012

I have added a search feature. Please take a look. It does a straightforward Arabic, English, Bangla search now in a regular search page.

If you want to extend this, please make a Google like auto complete search feature. You can use the code in Search.aspx to do the search and expose that over an API.

@ABACTech
Copy link
Collaborator Author

Hi,

After submission of my another two issues, I have start working on this issue.

To detect language in the search box, I am using Unicode character hexadecimal range.

@4our
Copy link

4our commented Nov 20, 2012

salaam Ismail,

there's a Google i18n script/code snippet you can find online to check language of input, and automatically set LTR or RTL. Let me know if you can't find it.

ps: you can also see it in action here: http://qurandev.appspot.com/ (type arabic/english in search box)

salam

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

No branches or pull requests

3 participants