Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Cores #29

Closed
mads-hartmann opened this issue May 2, 2012 · 10 comments
Closed

Multiple Cores #29

mads-hartmann opened this issue May 2, 2012 · 10 comments
Assignees

Comments

@mads-hartmann
Copy link

Hi there,

How do you deal with multiple cores? If I add the name of the core to the servers list

def servers = List(Props.get("solr.host").open_! + "/books") // Ignore bad practice of .open_! here

then I get the following error

java.lang.NumberFormatException: For input string: "8983/books"

How do I specific that it should use a specific core?

Thanks,
Mads

@holdenk
Copy link
Contributor

holdenk commented May 4, 2012

Oh hmm. We don't currently support multiple cores. I'll add that. (We use two cores, but only for indexing and swapping, we only ever query against the primary core).

@ghost ghost assigned holdenk May 4, 2012
@mads-hartmann
Copy link
Author

Cool thanks :)

As I'm new to Solr I don't know if what I'm doing makes sense. We have information about things like books,
films, bans etc. so my plan was to create a core for each so they could use separate schemas.

@holdenk
Copy link
Contributor

holdenk commented May 4, 2012

That sounds reasonable. Our data just happens to be large enough that we have separate solr's for each schema, so our multi-core configuration is only used as an indexing hack

@mads-hartmann
Copy link
Author

Ah okay. Nice to know that what I'm doing isn't completely out there :)

/Mads

@holdenk
Copy link
Contributor

holdenk commented May 4, 2012

Support has been added. I'll update the docs soon :)

@mads-hartmann
Copy link
Author

Very awesome! Thanks!

@mads-hartmann
Copy link
Author

If you could ping me here once you have a new version online that would be great.

@holdenk
Copy link
Contributor

holdenk commented May 7, 2012

It is now in 0.9.14 , just override "core" in your model to be Some("coreName"). It should be synced to the central maven in an hour or two.

@holdenk holdenk closed this as completed May 7, 2012
@mads-hartmann
Copy link
Author

Thanks!

@mads-hartmann
Copy link
Author

It works like a charm btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants