I think you’re missing a nuance.
It’s always a little confusing when people use quotes when talking about
searching because in Solr double quotes are a very specific form of a query,
i.e. a
phrase query which means words must appear within some distance of
each other (i.e. the ’slop’)
In Solr,
thx
of course they search for pharses.
and if they searched "hello monkey" and solr found "hello my monkey". i
want to get the position of "hello" and "monkey" (they words he actually
typed in the search).
and btw thx you all but i found
https://github.com/dbmdz/solr-ocrhighlighting which i think
What happens if they search for "hello monkey" and match against
"hello my monkeys"? What should it return? Why does your database not
contain "hello" instead of 199?
I am saying because if your clients are truly searching for just one
word, then Solr may be an overkill for you. Perhaps you are lo
One approach: Payloads. You can store, with each word, an arbitrary amount
data. Of course the index is bigger….
Most of the examples use a single float, which could be all you need. You can
store an arbitrary binary blob and encode/decode it however you want.
Conceivably you could store the co
every content field is actually a book content
so let say someone search for the word "hello" and i found this word in the
book "the story jungle" at position 199 (step by word not char)
now i can look at my database and check the OCR of this word in this book
(and show highlight on the picture an
Eli:
What problem are you trying to solve? There’s no really convenient way to do
this that know of, although it could be done, probably with some lucene-level
code.
This may be an XY problem, where you're asking how to do X (find the position
of the matched word) because you think it’ll help
hi i'm new to solr so please be patient.
how can i get the position of matched word in the results.
and no, im not talking about highlighting the words. i talkng about getting
the postition of the word in the content
i have field content which i do in q=content:"some_word"
the content field is n