postgresql - Text search with weights for individual keywords -


i have phrase matched against text column. phrase has multiple keywords, each associated given weight. example,

johnson [10] software [5] company [2] 

i using postgresql full text search, , may use thinking-sphinx or solr. there function in these 3 options allows me search different weights each keyword?

solr allows this.

your query this

q=(johnson)^10 (software)^5 (company)^2 

note default operator (and or or) defined in schema.xml comes play here.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -