Hello,
I'm still new to Solr/Lucene. I want to search documents for 2 or more
terms that must appear together on a page. I have a multiValued
TextField called "page" in a document with uniqueId called "id" that
represents a OCR'd book. My default operator is AND. My default field is
"page". My query is:
q=adhesion+ring&fl=id,score&fq=id:(1+44)&version=2.2
But this doesn't work. I get documents that contain "adhesion" on any
page and "ring" on any page even thought adhesion and ring do not appear
together in any single page field.
I guess this is not too surprising but could someone please point me to
a way to define my query or schema to support this search functionality?
A typical document resembles:
<doc>
<field name="id">44</field>
<field name="extern_id">mdp.39015015394847</field>
<field name="page">B 1,371,014 1S45 Jab of Jzvo Citie8.</field>
<field name="page">I</field>
<field name="page">4b217L. //4/ //& -%/DEDICATED TO THOMAS D.
GILBERT AND TO THE OLD RESIDENTS ASSOCIATION OF THE GRAND RIVER VALLEY.
</field>
etc.
Thanks,
Phil