lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Mannina" <bmann...@matheo-software.com>
Subject Get docs with same value in one other field ?
Date Wed, 22 Feb 2017 21:14:10 GMT
Hello all,

 

I’m facing a problem that I would like to know if it’s possible to do it
with one request in SOLR.

I have SOLR 5.

 

I have docs with several fields but here two are useful for us.

Field 1 : id (unique key)

Field 2 : fid (family Id)

 

i.e:

 

id:XXX 

fid: 1254

 

id: YYY

fid: 1254

 

id: ZZZ

fid:3698

 

id: QQQ

fid: 3698

…

 

I request only by id in my project, and I would like in my result have also
all docs that have the same fid .

i.e. if I request :

..q=id:ZZZ&…

 

I get the docs ZZZ of course but also QQQ because QQQ_fid = ZZZ_fid

 

MoreLikeThis, Group, etc… don’t answer to my question (but may I don’t know
how to use it to do that)

 

Thanks for your help,

 

Bruno

 

 

Bruno Mannina

 <http://www.matheo-software.com> www.matheo-software.com

 <http://www.patent-pulse.com> www.patent-pulse.com

Tél. +33 0 430 650 788
Fax. +33 0 430 650 728

 

Stay in touch!

 <https://twitter.com/matheosoftware> cid:image001.png@01D2860B.70B15DC0
<https://www.linkedin.com/company/matheo-software>
cid:image002.png@01D2860B.70B15DC0
<https://www.youtube.com/user/MatheoSoftware>
cid:image003.png@01D2860B.70B15DC0

 



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus
Avast.
https://www.avast.com/antivirus

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message