--
--
SD Ruby mailing list
sdr...@googlegroups.com
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sdruby+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Solr and Sunspot (for Rails) has pretty powerful numeric search. Worth taking a look at if what you can get out of Postgres doesn't get you there or if you're queries get too complex. Solr wraps Lucene, making it much easier to use.
But Postgres does not appear to support the <-> distance operator between text values or integer arrays. The code example in that SO post does not work, though the author doesn’t claim that it does.
I'm looking for a solution to a search problem and want to survey the community to see if anyone else has dealt with this type of search.The application I'm building supports an image processing system. We have a mathematical way of uniquely representing any particular image as a vector of 16 values, each ranging between 0 and 255.I need to implement a search mechanism that finds the closest matches to a given image, also represented as a 16 element vector. This is usually called a “vector space model" search, and it's implemented for full text search in Postgres as well as Lucene, and probably many other full text search systems.
You received this message because you are subscribed to a topic in the Google Groups "SD Ruby" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sdruby/eIfin-w6eD4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sdruby+un...@googlegroups.com.
Thanks, Guy, that is the Cube patch I referenced in my reply earlier today. At this point I'd rather not have to build a custom copy of Postgres to get this functionality, especially if I plan to deploy this app to a hosting provider like Heroku.That assumes I correctly understand what a “patch" is, so if I'm off the mark please enlighten me.
You received this message because you are subscribed to the Google Groups "SD Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sdruby+un...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "SD Ruby" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sdruby/eIfin-w6eD4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sdruby+un...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "SD Ruby" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sdruby/eIfin-w6eD4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sdruby+un...@googlegroups.com.
It doesn't look to me like this patch has been added to the cube extension, which I already loaded into Postgres hoping it would provide a solution. There's a discussion on the Postgres hacker board about maybe adding it to version 9.5 assuming all the tests and benchmarks can be properly added.
| cube_distance(cube, cube) returns double | Returns the distance between two cubes. If both cubes are points, this is the normal distance function. |