Hi everyone!

I think I should not have posted my server name... never had that many
access attempts...



2015-12-16 9:03 GMT-02:00 Evert R. <evert.ra...@gmail.com>:

> Hello Erick,
>
> Thanks again for your time.
>
> Here is as far as I have gone:
>
> 1. I started a fresh install and did the following:
>
> [evert@nix]$ bin/solr start -e techproducts
> [evert@nix]$ curl '
> http://localhost:8983/solr/techproducts/update/extract?literal.id=pdf1&commit=true'
> -F "Emmanuel=@/home/solr/dados/teste/Emmanuel.pdf"
>
> 2. I am using only the Solr Admin UI to check the query respond, here is
> an example:
>
> Query: http://
> ​localhost
>
> :8983/solr/techproducts/select?q=nietava&fl=id%2C+author%2C+content&wt=json&indent=true&hl=true&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E
>
> Result: {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 14,
>     "params": {
>       "q": "nietava",
>       "hl": "true",
>       "hl.simple.post": "</em>",
>       "indent": "true",
>       "fl": "id, author, content",
>       "wt": "json",
>       "hl.simple.pre": "<em>",
>       "_": "1450262674102"
>     }
>   },
>   "response": {
>     "numFound": 1,
>     "start": 0,
>     "docs": [
>       {
>         "id": "pdf1",
>         "author": "Wander",
>         "content": [
>           "André Luiz - Sexo e Destino _Chico e Waldo_.doc \n \n    \n
> Francisco Cândido Xavier \ne \n \n Waldo Vieira \n \n \n \n \n Sexo e
> Destino \n \n \n \n 12o livro da Coleção \n“A Vida no Mundo Espiritual” \n
> \n  \n \n \n \n Ditado pelo Espírito \nAndré Luiz \n \n  \n \n \n \n \n \n
> \n FEDERAÇÃO ESPÍRITA BRASILEIRA \nDEPARTAMENTO EDITORIAL \n \n Rua Souza
> Valente, 17 \n20941-040 - Rio - RJ - Brasil \n \n  \nhttp://
> www.febnet.org.br/  \n  \n \n   \n Francisco Cândido Xavier - Sexo e
> Destino - pelo Espírito André Luiz \n \n  \n2 \n \n  \n \n \n \n Coleção
> \n“A Vida no Mundo Espiritual” \n"
>         ]
>       }
>     ]
>   },
>   "highlighting": {
>     "pdf1": {}
>   }
> }
>
> **On the content it brings the whole pdf content (book), and notice that
> in the highlight it shows empty.
>
> I tried creating a new core with bin/solr create -c test, using the
> schema.xml and solrconfig.xml standard found in
> /solr/server/solr/configsets/basic_configs/conf
>
> But even though... not working as expected (I think).
>
>
> Would you know how to set this techproducts example to bring the snnipets
> of text?
>
> The server only allows specific ip address for this port, if you would, I
> could get it open for you to check.
>
>
> Thanks again and best regards!
>
>
>
>
> *Evert Ramos*
> *evert.ra...@gmail.com <evert.ra...@gmail.com>*
>
>
> 2015-12-15 18:14 GMT-02:00 Erick Erickson <erickerick...@gmail.com>:
>
>> 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
>> >> >
>> >>
>>
>
>

Reply via email to