Skip to content

Search query with http:// in the string get parsed strangely #1

@greglu

Description

@greglu

Like the following example:

class Book < BigRecord::Base
include BigIndex::Resource
column :url, :string

index :url, :string
end

Book.find(:first)
Dec 2, 2009 3:50:00 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select params={fl=pk_s,type_s_mv,id&qt=standard&wt=ruby&q=type_s_mv:"Book"^0.01&rows=1} hits=1 status=0 QTime=1
=> #<Book attribute:type: 0, id: "581428e4-38aa-44b3-a0dc-e7d3447fada2", attribute:url: "http://www.bigrecord.org/bigrecord-driver/">
Book.find_by_url('http://www.bigrecord.org/bigrecord-driver/')
Dec 2, 2009 3:52:18 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select params={fl=pk_s,type_s_mv,#BigIndex::IndexField:0x2200a9c_t,id&qt=standard&wt=ruby&q=(url_s:("http_t://www.bigrecord.org/bigrecord-driver/"))+AND+type_s_mv:"Book"^0.01&rows=1} hits=0 status=0 QTime=1
=> nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions