You should do a preprocessing(multiply your document as many documents as
values you have in your multivalue field, with the principalFlag:T in your
first document) before you indexing the data with that logic
Marco Martínez Bautista
http://www.paradigmatecnologico.com
Avenida de Europa, 26. Ática
hi Marco,
Thanks for quick reply..
I have another doubt: In 2nd solution: How to set flag for duplicate value.
because I am not sure about the no fo duplicate rows (it could be random
no..)
so how can I set the flag..
thank
On Wed, May 12, 2010 at 12:59 PM, Marco Martinez <
mmarti...@paradigmatec
Hi,
2º solution:
Not use multiValue fields, instead use two single fields, in your example
will be:
doc1:
dept: student1
city: city1
principalFlag:T
doc2:
dept: student2
city: city2
principalFlag:F
So, if you search without specify any city or dept, you should put
princiaplFlag:T for no get dup
Hi Marco,
I am trying to patch for collapse component support (till now no luck)..
In mean time I would like to know the 2nd and 3rd option you mentioned
(logic in solrj)..
with regards
On Thu, May 6, 2010 at 2:36 PM, Marco Martinez <
mmarti...@paradigmatecnologico.com> wrote:
> Hi Jonty,
>
> I
Hi Jonty,
I think you have three possible solutions:
1. Use the collapse component with your name field for not have any
duplicates documents.
2. Create a simple logic in your index with flags, like one flag to
determine the first element of the same document (in your example you wil
thanks
:General solution is to index 3 different SolrDocument in your example. id
and name fields will repeat themselves. All fields will be single-valued.
if I am indexing 3 different field then if user is searching by name + dept
then it will return duplicate value.. is there any other best pos
> recently I start to work on solr, So I am still very new to
> use solr. Sorry
> if I am logically wrong.
> I have two table, parent and referenced (child).
>
> for that I set multivalue field following is my schema
> details
> stored="true" required="true"
> />
>
>
> indexed="true" stor
Hi,
recently I start to work on solr, So I am still very new to use solr. Sorry
if I am logically wrong.
I have two table, parent and referenced (child).
for that I set multivalue field following is my schema details
indexed data details:
student1
student2
stud