You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jichi Guo <ji...@gmail.com> on 2016/12/30 20:01:44 UTC
Best practices to debug Solr search in production without all
fields stored
Hi everyone,
I found it convenient to debug Solr search results if I mark all fields to be
"stored=true" in schema.
For example, given a document, I could check why it is not returned in a query
with debug=true.
But in production, most of the fields have "stored=false" for performance
reason.
I am wondering what would be the recommended approaches to easily reason Solr
search results if some used fields are not stored?
Thanks!
Sent from [Nylas N1](https://link.nylas.com/link/5tkvmhpozan5j5h3lhni487b/loca
l-32350514-1e41/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=c29sci11c
2VyQGx1Y2VuZS5hcGFjaGUub3Jn), the extensible, open source mail client.

Re: Best practices to debug Solr search in production without all
fields stored
Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Are you trying to examine an individual document or some sort of bulk?
I sometimes facet on a field because that gives me the indexed
representation of it. There is also Luke to look at the raw index if
you want to really dig in.
Regards,
Alex.
----
http://www.solr-start.com/ - Resources for Solr users, new and experienced
On 30 December 2016 at 15:01, Jichi Guo <ji...@gmail.com> wrote:
> Hi everyone,
>
>
>
> I found it convenient to debug Solr search results if I mark all fields to be
> "stored=true" in schema.
>
> For example, given a document, I could check why it is not returned in a query
> with debug=true.
>
>
>
> But in production, most of the fields have "stored=false" for performance
> reason.
>
> I am wondering what would be the recommended approaches to easily reason Solr
> search results if some used fields are not stored?
>
>
>
> Thanks!
>
>
> Sent from [Nylas N1](https://link.nylas.com/link/5tkvmhpozan5j5h3lhni487b/loca
> l-32350514-1e41/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=c29sci11c
> 2VyQGx1Y2VuZS5hcGFjaGUub3Jn), the extensible, open source mail client.
>
> 
>
Re: Best practices to debug Solr search in production without all
fields stored
Posted by Erick Erickson <er...@gmail.com>.
For this specific case, you can use explainOther=id:<your unique key>
That will return the debug data for whatever ID you specify even if it
is not a hit. This is most useful when the reason is that the doc
didn't score high enough.
It can be somewhat unhelpful if you don't have terms that match since
it returns "0.0 = no matching term".
Best,
Erick
On Fri, Dec 30, 2016 at 12:01 PM, Jichi Guo <ji...@gmail.com> wrote:
> Hi everyone,
>
>
>
> I found it convenient to debug Solr search results if I mark all fields to be
> "stored=true" in schema.
>
> For example, given a document, I could check why it is not returned in a query
> with debug=true.
>
>
>
> But in production, most of the fields have "stored=false" for performance
> reason.
>
> I am wondering what would be the recommended approaches to easily reason Solr
> search results if some used fields are not stored?
>
>
>
> Thanks!
>
>
> Sent from [Nylas N1](https://link.nylas.com/link/5tkvmhpozan5j5h3lhni487b/loca
> l-32350514-1e41/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=c29sci11c
> 2VyQGx1Y2VuZS5hcGFjaGUub3Jn), the extensible, open source mail client.
>
> 
>
Re: Best practices to debug Solr search in production without all
fields stored
Posted by Mikhail Khludnev <mk...@apache.org>.
Here is a trick fl=field(color). It either hit docvalues, or swallow plenty
of heap for field cache uninvertion.
On Fri, Dec 30, 2016 at 11:01 PM, Jichi Guo <ji...@gmail.com> wrote:
> Hi everyone,
>
>
>
> I found it convenient to debug Solr search results if I mark all fields to
> be
> "stored=true" in schema.
>
> For example, given a document, I could check why it is not returned in a
> query
> with debug=true.
>
>
>
> But in production, most of the fields have "stored=false" for performance
> reason.
>
> I am wondering what would be the recommended approaches to easily reason
> Solr
> search results if some used fields are not stored?
>
>
>
> Thanks!
>
>
> Sent from [Nylas N1](https://link.nylas.com/link/5tkvmhpozan5j5h3lhni487b/
> loca
> l-32350514-1e41/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%
> 3Fref%3Dn1&r=c29sci11c
> 2VyQGx1Y2VuZS5hcGFjaGUub3Jn), the extensible, open source mail client.
>
> 
>
>
--
Sincerely yours
Mikhail Khludnev