No, that's not what I meant. The highlight component adds a special section to the return packet that will contain "snippets" of text with highlights. You control how big those snippets are via various parameters in the highlight component and they'll have the tags you specify for highlighting.
Your app needs to pull the information from the highlight portion of the response packet rather than the document list. Just execute your queries via cURL or a browser to see the structure of a response to see what I mean. And note that you do _not_ need to return the fields you're highlighting in the "fl" list so you do _not_ need to return the entire document contents. What are you using to display the results anyway? Best, Erick On Tue, Dec 15, 2015 at 10:02 AM, Evert R. <evert.ra...@gmail.com> wrote: > Hi Erick, > > Thank you very much for the reply!! > > I do get back the full text, autor, and a whole lots of stuff which doesn´t > really matter for my project. > > So, what you are saying is that the solr gets me back the full content and > my application will fix the rest? Which means for me that all my books (pdf > files) when searching for an specific word it will bring me the whole book > content that has the requested query. And my application (php) in this > case... will take care of show only part of the text (such as in highlight, > as I was understandind) and hightlight the key word I was looking for? > > If so, Erick, you gave me a big help clearing out... I thought I would do > that with Solr in an easy way. =) > > Thanks for the attachements tip! > > Best regards, > > Evert > > 2015-12-15 14:56 GMT-02:00 Erick Erickson <erickerick...@gmail.com>: > >> How are you trying to display the results? Highlighting is a bit of an >> odd beast. Assuming it's correctly configured, the response packet >> will have a separate highlight section, it's the application's >> responsibility to present that pleasingly. >> >> What _do_ you get bak in the response? >> >> BTW, the mail sever pretty aggressively strips attachments, your's >> didn't come through. >> >> Best, >> Erick >> >> On Tue, Dec 15, 2015 at 3:25 AM, Evert R. <evert.ra...@gmail.com> wrote: >> > Hi there! >> > >> > It´s my first installation, not sure if here is the right channel... >> > >> > Here is my steps: >> > >> > 1. Set up a basic install of solr 5.4.0 >> > >> > 2. Create a new core through command line (bin/solr create -c test) >> > >> > 3. Post 2 files: 1 .docx and 2 .pdf (bin/post -c test /docs/test/) >> > >> > 4. Query over the browser and it brings the correct search, but it does >> not >> > show the part of the text I am querying, the highlight. >> > >> > I have already flagled the 'hl' option. But still it does not word... >> > >> > Exemple: I am looking for the word 'peace' in my pdf file (book) I have 4 >> > matches for this word, it shows me the book name (pdf file) but does not >> > bring which part of the text it has the word peace on it. >> > >> > >> > I am problably missing some configuration in schema.xml, which is missing >> > from my folder.... /solr/server/solr/test/conf/ >> > >> > Or even the solrconfig.xml... >> > >> > I have read a bunch of things about highlight check these files, copied >> the >> > standard schema.xml to my core/conf folder, but still it does not bring >> the >> > highlight. >> > >> > >> > Attached a copy of my solrconfig.xml file. >> > >> > >> > I am very sorry for this, probably, dumb and too basic question... First >> > time I see solr in live. >> > >> > >> > Any help will be appreciated. >> > >> > >> > >> > Best regards, >> > >> > >> > Evert Ramos >> > >> > evert.ra...@gmail.com >> > >>