How do you convert keys from major to minor?

Which search engines (SAAS or locally installed) support binary primary keys?

  • I've been using Sphinx+Thinking Sphinx (a Rails lib) but hit a roadblock with a new app: my app uses binary UUID primary keys, and Sphinx apparently does not support this. Thinking Sphinx returns a cryptic error. http://sphinxsearch.com/forum/view.html?id=3553 It looks to me like Searchify will work because the DocID field can be the result of a function call; and so I can convert my binary UUID to a String and use it as the DocID. How about the others? IMO, this is a very important make-or-break feature that doesn't appear in the typical feature list.

  • Answer:

    Hi, Chris from Searchify here.  Searchify doesn't support binary DocIDs.  However, there are some ways to convert binary data to an ASCII string that will work (and you can convert it back).  Look into uuencoding and uudecoding - libraries exist for this in all popular languages.  I hope this helps.

Chris Lamprecht at Quora Visit the source

Was this solution helpful to you?

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.