|
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
|
|
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!
|
|
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
|
|
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!
|
|
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
|
|