[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Plural words in search results



Hi All,

One of our users came across a problem, when performing some keyword searches...  and assumed it was a case problem, since the all uppercase words in their testing weren't returning in the result set.

After testing, I have a preliminary diagnosis, (we are running 3.3.10 if it makes a difference).

It appears the index process is removing the 's' off the end of the word (unless the word is all caps).
When performing a search, the system removes the 's' from the search term, and performs the search... in our case this returns 2 of 3 test records.

When I took the last two letters off each eprint's keywords, and then performed a search, it returned all three records in the results..

+----------+----------+---------------+--------------------------+
|<-   details from eprint__rindex   ->|<- eprint.keywords field->|
+----------+----------+---------------+--------------------------+
| eprintid | field    | word          |     keywords             |
+----------+----------+---------------+--------------------------+
|    29533 | keywords | ornithorhynch |     ornithorhynch        |
|    29534 | keywords | ornithorhynch |     Ornithorhynch        |
|    29535 | keywords | ornithorhynch |     ORNITHORHYNCH        |
+----------+----------+---------------+--------------------------+

The plural determination holds true for the humble Platypus as well :(

+----------+----------+-----------------+---------------------------+
| eprintid | field    | word            | keywords                  |
+----------+----------+-----------------+---------------------------+
|    29533 | keywords | ornithorhynchu  | ornithorhynchus, platypus |
|    29533 | keywords | platypu         | ornithorhynchus, platypus |
|    29534 | keywords | ornithorhynchu  | Ornithorhynchus, Platypus |
|    29534 | keywords | platypu         | Ornithorhynchus, Platypus |
|    29535 | keywords | ornithorhynchus | ORNITHORHYNCHUS, PLATYPUS |
|    29535 | keywords | platypus        | ORNITHORHYNCHUS, PLATYPUS |
+----------+----------+-----------------+---------------------------+


Cheers

Matt.



_____________________________________________________________
This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt.

The University of Southern Queensland is a registered provider of education with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170601/5cf32c98/attachment.html