To my knowledge, there is not a program to do this that is free. You can readily find structural data at any of the places suggested here (https://serc.carleton.edu/research_education/crystallography/xldatabases.html). The American Mineralogist link allows you to search by position (2theta, d-spacing, or energy), so this may be your best bet.
Alternatively, you could write a program to identify the peaks based on intensity, and then access the online database and return results. An easier option is to know the chemistry and input that into the aforementioned databases.
In X-ray analysis, changing GIA can help to understand the material’s properties in a broader perspective. From the characteristics of peaks resulted in pattern, we can get some idea about the texture of deposited/processed/synthesized material, but within the surface area dealt with the exposure of X-rays. However, by changing the position of sample and under repeated X-ray analysis, it is possible to draw the picture of texture in broader context. To study texture coefficient for a particular material, the development of a master pattern is necessary, which can be the reference pattern.
You may take the X-ray pattern of your sample by changing the GIA, i.e., 0.1 deg., 0.3 deg., 0.5 deg., 0.7 deg., 0.9 deg. you will see in the resulted pattern different scans of your same sample. In this way, you can explain the different factors related to structure of your material. At low GIA (0.1 deg.), you may get less peaks and less complicated/complex pattern, but at high GIA (0.9 deg.), you may get more peaks and more complicated/complex pattern. Please read the article to get better know how (https://www.researchgate.net/publication/352830671or http://dx.doi.org/10.13140/RG.2.2.27720.65287). Good luck
There is the COD (Crystallographic Open Database); please, follow the link: http://www.crystallography.net/cod/.
There are some programs for phase identification that you can use freely; however, I never use them. I am not sure about the ease of use and precision of the results. They use a sort of excel routine.
Some proprietary programs allow a period of use, usually 30 days for a test; you may test with your data. If satisfied, consider buying, it is a handy and necessary sort of program.
Sir, perhaps you yet couldn’t able to read that article, and you will definitely find some appealing information related to your question, i.e. search/match option. You will also find the information about XRR analysis at place of XRD analysis. To safe your time, you may directly refer to the “discussion section” of that preprint article. Please feel free to contact me if I can be further helpful towards you.