Last modified by Thomas Mortagne on 2023/10/13

From version < 4.14 >
edited by Marius Dumitru Florea
on 2013/12/13
To version < 4.15 >
edited by Marius Dumitru Florea
on 2013/12/13
Change comment: There is no comment for this version



Page properties
... ... @@ -24,6 +24,22 @@
24 24  
25 25  {{include reference="ReleaseNotesXWiki53RC1" section="HSearchforDocumentsMatchingSpecificValuesinMultipleXObjectProperties"/}}
26 26  
27 +== Search for Documents Matching Specific Attachment Meta Data ==
28 +
29 +Another important search use case is to find documents matching specific attachment meta data. For instance, you could be looking for a blog post that has a PDF file attached. Or you may be searching for a wiki page where you recently uploaded an image. Finding the documents tagged with 'News' and which have large attachments is another example.
30 +
31 +Previously, we were indexing attachment data on separate index rows. As with XObjects, you had to use joins in the Solr search syntax in order to match both document and attachment rows in the search index. Starting with this version we index attachment data on document rows also. Obviously this means the attachment data is now duplicated but we think the increase of the index size is worth the improved search speed and the simplified query syntax:
32 +
33 +{{code language="none"}}
34 +object:Blog.BlogPostClass AND mimetype:"application/pdf" AND mistake
35 +
36 +title:profile attdate:[NOW-3DAYS TO NOW] AND mimetype:image\/*
37 +
38 +property.XWiki.TagClass.tags:"News" AND attsize:[50000 TO *]
39 +{{/code}}
40 +
41 +See [[Solr Schema Design>>design:Design.SolrSchema]] for the list of attachment fields that can be used in the Solr search query.
42 +
27 27  {{include reference="ReleaseNotesXWiki53M1" section="HDocumentReferenceLocalenowtakenintoaccountinXWiki23existsandXWiki23getDocument"/}}
28 28  
29 29  {{include reference="ReleaseNotesXWiki53M1" section="HNewExtensionManagerAPIs"/}}

Get Connected