Exercise/FOQElasticaBundle — Issue #56: Can't user another server than localhost
Author: babour
Created: 2011-12-29 17:09:50+00:00
State: open

Hi,

I am trying to use this bundle using an external server and when I put the ip in the configuration instead of localhost it doesn't change anything. Anyone have an idea?

When I put this code, it still get connected to the localhost, but when I used to third part software to redirect the localhost and the port to another ip then it works perfectly.

foq_elastica:
clients:
default: { host: "the ip of the server (other than localhost)" port: "the port configured on the server" }
indexes:
website:
client: default
types:
post:
mappings:
title: { boost: 8 }
doctrine:
driver: orm
model: ......\Entity\Post
provider:
batch_size: 10
listener:
finder:
user:
mappings:
username: { boost: 5 }
firstName: { boost: 3 }
lastName: { boost: 3 }
top1: { boost: 2 }
top2: { boost: 2 }
top3: { boost: 2 }
doctrine:
driver: orm
model: ......\Entity\User
provider:
batch_size: 10
listener:
finder: