Skip to content

Commit

Permalink
changed the or to the and
Browse files Browse the repository at this point in the history
  • Loading branch information
Becker committed Oct 16, 2011
1 parent e392771 commit 2983b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/search_controller.rb
Expand Up @@ -7,7 +7,7 @@ def index
#build our main searcher tags or search text
if(params["tag"] || params["search"])
s=""
s+="("+params["tag"].to_s.split(",").join(" OR ")+") #{'AND' if params["search"]} " if params["tag"]
s+="("+params["tag"].to_s.split(",").join(" AND ")+") #{'AND' if params["search"]} " if params["tag"]
s+= " "+params["search"] if params["search"]
match={"query_string"=>{
"fields"=> [ "no_tag_body" ], "query"=> s, "use_dis_max"=> true}}
Expand Down

0 comments on commit 2983b02

Please sign in to comment.