Have you tried setting your default operator to AND
in schema.xml?
Best
Erick
On Wed, Jun 15, 2011 at 12:36 PM, rajini maski wrote:
> ok. Thank you. I will consider this.
>
> One last doubt ,how do i handle negation terms?
>
> In the above mail as i mentioned, If i have 3 sentence like this:
>
>
ok. Thank you. I will consider this.
One last doubt ,how do i handle negation terms?
In the above mail as i mentioned, If i have 3 sentence like this:
1 .tissue devitalization was observed in hepalocytes of liver
2. necrosis was observed in liver
3. Necrosis not found in liver
When i search "Ne
than
On Wed, Jun 15, 2011 at 9:42 PM, Erick Erickson wrote:
> Well, first it is usually unnecessary to specify the
> synonym filter both at index and query time, I'd apply
> it only at query time to start, then perhaps switch
> to index time, see the discussion at:
>
> http://wiki.apache.org/solr
Well, first it is usually unnecessary to specify the
synonym filter both at index and query time, I'd apply
it only at query time to start, then perhaps switch
to index time, see the discussion at:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#head-2c461ac74b4ddd82e453dc68fcfc92da7735
Erick: I have tried what you said. I needed clarification on this.. Below is
my doubt added:
Say If i have field type :
The data indexed in this field is :
sentence 1 : " tissue de
Maybe you can try to escape the synonyms so it's no tokized by whitespace..
Private\ schools,NGO\ Schools,Unaided\ schools
--
View this message in context:
http://lucene.472066.n3.nabble.com/Query-on-Synonyms-feature-in-Solr-tp3058197p3062392.html
Sent from the Solr - User mailing list archive
I think the point is that you need to expand synonyms at
index time but not at query time. In the field type definitions you
provided, the expansion happens both at index and query
time
Or have you tried that already?
Best
Erick
On Mon, Jun 13, 2011 at 7:46 AM, rajini maski wrote:
> Karsten
Karsten,
I have tried for both the cases you mentioned below.
For "WhitespaceTokenizerFactory" that generates two tokens: "private"
"schools" and so i don't get results as required. It will initially split
"private schools" as "private" and "schools" and then try to match in
synonym filter. Th
Hi rajini,
multi-word synonyms like "private schools" normally make problems.
See e.g. Solr-1-4-Enterprise-Search-Server Page 56:
"For multi-word synonyms to work, the analysis must be applied at
index-time and with expansion so that both the original words and the
combined word get indexed. ..."