lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marotosg <marot...@gmail.com>
Subject join and NOT together
Date Mon, 15 Feb 2016 16:10:28 GMT
Hi, 

I am trying to solve an issue when doing a search joining two collections
and negating the cross core query.

Let's say I have one collection person and another collection documents and
I can join them using local param !join because I have PersonIDS in document
collection.

if my query is like below. Query executed against Person Core. I want to
retrieve people with name Peter and not documents attached of type pdf.

q=PersonName:peter AND {!type=join from=DocPersonID to=PersonID
fromIndex=document v='(*:* -DocType:pdf)' }

If I have for person 1 called peter two documents one of type:pdf and other
one of type:word.
Then this person will come back.

Is there any way of excluding that person if any of the docs fulfill the
NOT.

Thanks
Sergio







--
View this message in context: http://lucene.472066.n3.nabble.com/join-and-NOT-together-tp4257411.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message