Re: Beginner Question about Types and Parent-Child Definitions in Solr Schema.xml

2013-02-03 Thread zagros
Many thanks Upayavira and Chris Makes a lot of sense. Thanks very much guys. -- View this message in context: http://lucene.472066.n3.nabble.com/Beginner-Question-about-Types-and-Parent-Child-Definitions-in-Solr-Schema-xml-tp4038209p4038233.html Sent from the Solr - User mailing list

Re: Beginner Question about Types and Parent-Child Definitions in Solr Schema.xml

2013-02-03 Thread Mattmann, Chris A (388J)
efine "Posts" to be child of >"Users". Can't find any docs on how to do this > > >thanks in advance > > > > > >-- >View this message in context: >http://lucene.472066.n3.nabble.com/Beginner-Question-about-Types-and-Paren >t-Child-Definitions-in-Solr-Schema-xml-tp4038209.html >Sent from the Solr - User mailing list archive at Nabble.com.

Re: Beginner Question about Types and Parent-Child Definitions in Solr Schema.xml

2013-02-03 Thread Upayavira
ects, and Posts, but make it so that if > I > search "foo", then it searches Users with name "foo" and posts that have > "foo" in their text. > > #2) > Same scenario as above, I want to be able to define "Posts" to be child > of > &quo

Beginner Question about Types and Parent-Child Definitions in Solr Schema.xml

2013-02-03 Thread zagros
hanks in advance -- View this message in context: http://lucene.472066.n3.nabble.com/Beginner-Question-about-Types-and-Parent-Child-Definitions-in-Solr-Schema-xml-tp4038209.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Beginner question

2010-07-20 Thread Erik Hatcher
On Jul 20, 2010, at 6:14 AM, Bilgin Ibryam wrote: So I assume that storing entity each field in as a separate index field is correct, since they will get different scoring. Just to get the terminology right... to use dismax, *index* each field separately. Whether a field is *stored* or no

Re: Beginner question

2010-07-20 Thread Ahmet Arslan
> Is it possible to use dismax query parser using solrJ, > since this is how I'm going to access solr? Sure it is possible. SolrQuery.setQueryType("dismax") is equals to &defType=dismax. More permanent way: You can define your dismax parameters (fields and boost weights) in solrconfig.xml, and

Re: Beginner question

2010-07-20 Thread Bilgin Ibryam
t; > >> 1. I think to create an index having the same fields, because each > >> field > >> needs different priority during searching. > >> > >> 2. And then do the search with a query like this: > >> name:search_string^1.3 OR categpry:search_string^1.2

Re: Beginner question

2010-07-20 Thread MitchK
en do the search with a query like this: >> name:search_string^1.3 OR categpry:search_string^1.2 OR >> description:search_string^1.1 >> >> Is this the right approach to model the index and search query? >> >> Thanks in advance. >> Bilgin > > > -- View this message in context: http://lucene.472066.n3.nabble.com/Beginner-question-tp980695p980819.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Beginner question

2010-07-20 Thread Erik Hatcher
Consider using the dismax query parser instead. It has more sophisticated capability to spread user queries across multiple fields with different weightings. Erik On Jul 20, 2010, at 4:34 AM, Bilgin Ibryam wrote: Hi all, I have two simple questions: I have an Item entity with id

Beginner question

2010-07-20 Thread Bilgin Ibryam
Hi all, I have two simple questions: I have an Item entity with id, name, category and description fields. The main requirements is to be able to search in all the fields with the same string and different priority per field, so matches in name appear before category matches, and they appear befo