Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Restrict search hits to title only - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
DMacy
#1 Posted : Thursday, September 7, 2017 4:03:02 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/1/2010
Posts: 136
Is there a way to only use the title words (not body or URI) to determine search results?

Thanks!

Dan
Jim
#2 Posted : Thursday, September 7, 2017 9:14:42 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
You could create an index with only title information, using a central event to modify the text. Is that what you want, or do you want it to be optional whether to only search titles?

You could also store the title in CustomData and then filter based on that.

Those are my vague ideas - I can flesh them out a bit.
-your feedback is helpful to other users, thank you!


DMacy
#3 Posted : Thursday, September 7, 2017 9:48:46 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/1/2010
Posts: 136
Thanks for the ideas, Jim! I don't want it to be optional. For one specific use of the index, I want it to only consider the words in the title field to determine search hits.

I need to use SearchUnit's lemma capabilities to determine search hits, and that's why I didn't think using the CustomData would work.

I have also thought about creating a separate index to use for this one specific search, but don't want to go to the extra work of generating and maintaining it if it would work with the index that already contains the data.

Dan
Jim
#4 Posted : Thursday, September 7, 2017 9:53:35 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
You are correct that lemmas aren't going to work with filtering by CustomData - well, I say that, you could do it using our API to generate lemmas and do an IndexOf for each one but it won't feel nice doing it.
The crux of the issue is that our engine doesn't truly support fields at the lowest level, so you can't search specific fields directly.
That means, I think, that you will have to have a separate 'Titles Only' index, sorry.
-your feedback is helpful to other users, thank you!


DMacy
#5 Posted : Thursday, September 7, 2017 10:15:35 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/1/2010
Posts: 136
No problem! I was thinking that was probably going to be the answer, but wanted to check with you first to be sure I wasn't overlooking another way to solve the need.

Thanks again for your help!

Dan
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.